From: Vincent Date: Sat, 21 Nov 2020 15:40:15 +0000 (+0100) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=751240e60ede34a9d3da2fcc7ff56a295c28f18e;p=tortuga-home.git . --- diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 030e257..7ac12d2 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,7 +3,21 @@ - + + + + + + + + + + + + + + + @@ -1294,17 +1308,17 @@ - + - - + + - + @@ -1319,19 +1333,19 @@ - + - + - + - + @@ -1353,11 +1367,6 @@ file://$PROJECT_DIR$/scripts/lib/freebox.php diff --git a/config/bureau.php b/config/bureau.php index 7c4ed5d..f4171cb 100644 --- a/config/bureau.php +++ b/config/bureau.php @@ -13,6 +13,7 @@ config('HIDEMASK_TIMEOUT', 250); // config('TVPLAYER', 'shield'); config('VIDEOPLAYER', 'shield'); +config('THEME', '#051039'); if (DISPLAYINTERFACE) { @@ -28,5 +29,5 @@ if (DISPLAYINTERFACE) { include "default.php"; include ROOT . "/config/media.php"; - $nav=['home','lights','music','media','remote','switch','settings','alert','off']; + $nav = ['home', 'lights', 'music', 'media', 'remote', 'switch', 'settings', 'alert', 'off']; } diff --git a/config/chambre.php b/config/chambre.php index 6d79a57..24072a0 100644 --- a/config/chambre.php +++ b/config/chambre.php @@ -8,6 +8,7 @@ config('SLEEPTYPE', 'screensaver'); config('SCREENSAVER', 'weatherstation'); config('VOLUME_DEVICE', 'RaspberryPi:lit'); config('HIDEMASK_TIMEOUT', 250); +config('THEME','#5c4736'); if (DISPLAYINTERFACE) { if (!isset($shortcuts)) { diff --git a/config/cour.php b/config/cour.php index a8500e7..5b41d28 100644 --- a/config/cour.php +++ b/config/cour.php @@ -5,6 +5,7 @@ config('SQUEEZEBOX_PLAYER', 'Cuisine'); config('VOLUME', 60); config('VOLUME_DEVICE', 'SqueezeboxPlayer'); config('HIDEMASK_TIMEOUT', 250); +config('THEME','#2e623b'); if (DISPLAYINTERFACE) { $c = cour(); diff --git a/config/cuisine.php b/config/cuisine.php index fbf095a..2550ad3 100644 --- a/config/cuisine.php +++ b/config/cuisine.php @@ -4,6 +4,7 @@ config('ROOM', 'cuisine'); config('SQUEEZEBOX_PLAYER', 'Cuisine'); config('HIDEMASK_TIMEOUT', 250); config('VOLUME_DEVICE', 'SqueezeboxPlayer'); +config('THEME','#222222'); if (DISPLAYINTERFACE) { $c = cuisine(); diff --git a/config/default.php b/config/default.php index 3c414d8..7554972 100644 --- a/config/default.php +++ b/config/default.php @@ -6,6 +6,10 @@ if (!isset($favoriteslights)) { $favoriteslights = []; } +if (!hasConfig('THEME')) { + config('THEME', '#0a4a9e'); +} + $roomshome = [['type' => 'separator', 'label' => 'Autres pièces']]; foreach ($rooms as $room => $label) { if (hasConfig('ROOM') && config('ROOM') == $room) { diff --git a/config/entree.php b/config/entree.php index ac769c4..1993c04 100644 --- a/config/entree.php +++ b/config/entree.php @@ -8,6 +8,7 @@ config('SLEEPTYPE', 'screensaver'); config('SCREENSAVER','weatherstation'); config('VOLUME_DEVICE', 'SqueezeboxPlayer'); config('HIDEMASK_TIMEOUT',250); +config('THEME','#000000'); if (DISPLAYINTERFACE) { if (!isset($shortcuts)) { diff --git a/config/litjerome.php b/config/litjerome.php index 123eb66..35487c5 100644 --- a/config/litjerome.php +++ b/config/litjerome.php @@ -8,6 +8,7 @@ config('SLEEPTYPE', 'screensaver'); config('SCREENSAVER', 'weatherstation'); config('VOLUME_DEVICE', 'RaspberryPi'); config('HIDEMASK_TIMEOUT', 250); +config('THEME','#086d89'); if (DISPLAYINTERFACE) { $additionnalfavorites = []; diff --git a/config/litvincent.php b/config/litvincent.php index d78278f..f8d22fe 100644 --- a/config/litvincent.php +++ b/config/litvincent.php @@ -8,6 +8,7 @@ config('SLEEPTYPE', 'screensaver'); config('SCREENSAVER', 'weatherstation'); config('HIDEMASK_TIMEOUT', 250); config('SLEEPSCREEN', 8); +config('THEME','#a62634'); if (DISPLAYINTERFACE) { diff --git a/config/salon.php b/config/salon.php index a9f8a78..96cbdc9 100644 --- a/config/salon.php +++ b/config/salon.php @@ -7,6 +7,7 @@ config('TVPLAYER', 'shield'); config('VOLUME_DEVICE', 'harmony'); config('VIDEOPLAYER_DEVICE', 'salon'); config('HIDEMASK_TIMEOUT', 250); +config('THEME','#7a6854'); if (DISPLAYINTERFACE) { $c = salon(); diff --git a/config/sdb.php b/config/sdb.php index bbc166e..fc5aea9 100644 --- a/config/sdb.php +++ b/config/sdb.php @@ -11,6 +11,7 @@ config('TVPLAYER', 'mediarasp-small'); config('VOLUME', 60); config('VOLUME_DEVICE', 'Squeezebox'); config('HIDEMASK_TIMEOUT',250); +config('THEME','#92475c'); if (DISPLAYINTERFACE) { $c = sdb(); diff --git a/index.php b/index.php index e671762..5a2aac8 100644 --- a/index.php +++ b/index.php @@ -57,6 +57,9 @@ function relativePath($p)