diff --git a/LookingGlass.php b/LookingGlass.php index a8911df..dc71779 100644 --- a/LookingGlass.php +++ b/LookingGlass.php @@ -50,6 +50,9 @@ public static function validateConfig(): void if (!defined('LG_LOGO')) { die('LG_LOGO not found in config.php'); } + if (!defined('LG_LOGO_DARK')) { + die('LG_LOGO_DARK not found in config.php'); + } if (!defined('LG_LOGO_URL')) { die('LG_LOGO_URL not found in config.php'); } @@ -122,6 +125,9 @@ public static function validateConfig(): void if (!defined('LG_CHECK_LATENCY')) { die('LG_CHECK_LATENCY not found in config.php'); } + if (!defined('LG_THEME')) { + die('LG_THEME not found in config.php'); + } //@formatter:on } diff --git a/README.md b/README.md index 2768168..9162e23 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ made user-friendly for everyone to use. It allows you to execute network related - Easy to customize and to configure. - DNS checking to prevent unnecessary executions. - Latency feature from visitor to LG. +- Dark/light/auto mode theme. ### Requirements - Any Linux distribution, this has been tested on RHEL 8 + 9. diff --git a/bootstrap.php b/bootstrap.php index 92a2191..56b4c55 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -41,6 +41,7 @@ function exitNormal(): void 'custom_head' => LG_CUSTOM_HEAD, 'logo_url' => LG_LOGO_URL, 'logo_data' => LG_LOGO, + 'logo_data_dark' => LG_LOGO_DARK, // 'block_network' => LG_BLOCK_NETWORK, 'block_lookingglas' => LG_BLOCK_LOOKINGGLAS, diff --git a/config.dist.php b/config.dist.php index 37a39a2..9e2034a 100644 --- a/config.dist.php +++ b/config.dist.php @@ -5,10 +5,15 @@ const LG_TITLE = 'Looking Glass'; // Define a logo, this can be HTML too, see the other example for an image; -const LG_LOGO = '