Beta Support for Dark Mode has been added to the theme options

This commit is contained in:
johnnyq
2025-07-24 14:58:06 -04:00
parent 4d71eb5de0
commit e014e516e6
7 changed files with 27 additions and 6 deletions

View File

@@ -5,4 +5,4 @@
* It is used in conjunction with database_updates.php
*/
DEFINE("LATEST_DATABASE_VERSION", "2.2.4");
DEFINE("LATEST_DATABASE_VERSION", "2.2.5");

View File

@@ -128,7 +128,7 @@ $config_time_format = "H:i";
// Theme
$config_theme = $row['config_theme'];
$config_theme_mode = "dark_mode";
$config_theme_dark = intval($row['config_theme_dark']);
// Telemetry
$config_telemetry = intval($row['config_telemetry']);

View File

@@ -46,5 +46,9 @@ header("X-Frame-Options: DENY");
<script src="plugins/toastr/toastr.min.js"></script>
</head>
<body class="hold-transition sidebar-mini layout-fixed layout-navbar-fixed dark-moe accent-<?php if (isset($_GET['client_id'])) { echo "blue"; } else { echo nullable_htmlentities($config_theme); } ?>">
<body class="
hold-transition sidebar-mini layout-fixed layout-navbar-fixed
accent-<?php if (isset($_GET['client_id'])) { echo "blue"; } else { echo nullable_htmlentities($config_theme); } ?>
<?php if ($config_theme_dark) { echo "dark-mode"; } ?>
">
<div class="wrapper text-sm">