auto refresh screen on image update/activate

This commit is contained in:
trashbo4t
2018-05-20 05:40:18 -04:00
parent 724eecf8b7
commit 5068e0faa9
4 changed files with 150 additions and 146 deletions

View File

@@ -248,9 +248,9 @@ class Themes extends Module
return true;
}
/*
* searchAndReplaceFile
* $s -> substring to find
* return: true or false showing succcessful string replacement
* searchAndReplaceFile
* $s -> substring to find
* return: true or false showing succcessful string replacement
*/
public function searchAndReplaceFile($f, $s)
{
@@ -258,8 +258,8 @@ class Themes extends Module
return (exec("sed -i 's/fill:\(.*\);/fill:#{$s};/g' $f") == 0);
}
/*
* setCurrentTheme
* $theme -> modify CURRENT_CSS file with new theme
* setCurrentTheme
* $theme -> modify CURRENT_CSS file with new theme
*/
public function setCurrentTheme($theme)
{
@@ -267,8 +267,8 @@ class Themes extends Module
exec('echo '.$theme.' > /pineapple/modules/Themes/css/CURRENT_CSS');
}
/*
* getCurrentTheme
* return current theme, and all parameters for icon colors/brightness
* getCurrentTheme
* return current theme, and all parameters for icon colors/brightness
*/
public function getCurrentTheme()
{