aboutsummaryrefslogtreecommitdiffstats
path: root/theme/admin/html/migration.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-07-05 21:42:20 +0200
committerThomas Lange <code@nerdmind.de>2021-07-05 22:00:36 +0200
commiteb6c2659c877b927d5461d9de309dd16e8ae8155 (patch)
treefdde59b56169998cfd67187861a6c34fca928039 /theme/admin/html/migration.php
parentcb6e45b130bde70458ee544069834a951214037d (diff)
downloadblog-eb6c2659c877b927d5461d9de309dd16e8ae8155.tar.gz
blog-eb6c2659c877b927d5461d9de309dd16e8ae8155.tar.xz
blog-eb6c2659c877b927d5461d9de309dd16e8ae8155.zip
Add dark color mode for admin theme
This commit adds a dark color mode for the admin theme. The dark color mode can be enabled/disabled by clicking the hyperlink in the footer. It is not perfect yet (it uses cookies and needs a full page reload), but it works just fine for the moment. Hope your eyes can enjoy it!
Diffstat (limited to 'theme/admin/html/migration.php')
-rw-r--r--theme/admin/html/migration.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/theme/admin/html/migration.php b/theme/admin/html/migration.php
index 14405c4..1b5be2c 100644
--- a/theme/admin/html/migration.php
+++ b/theme/admin/html/migration.php
@@ -1,10 +1,11 @@
+<?php $theme = isset($_COOKIE['dark_mode']) ? 'dark' : 'main'; ?>
<!DOCTYPE html>
<html lang="<?=$BLOGMETA['LANG']?>">
<head>
<meta charset="UTF-8" />
<meta name="referrer" content="origin-when-crossorigin" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <link rel="stylesheet" href="<?=Application::getTemplateURL('rsrc/css/main.css')?>" />
+ <link rel="stylesheet" href="<?=Application::getTemplateURL("rsrc/css/$theme.css")?>" />
<title><?=$Language->text('maintenance_mode')?></title>
</head>
<body>