From a5c1db01069e8cbecffacf2a7126b67baee45ccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96sterreich=20Luminota?= Date: Sun, 11 Jun 2023 14:02:59 +0700 Subject: [PATCH] Admin: Add dark more toggle yay dark mode The switch can be turned off after a page reload even if the dark theme is enabled. But hey, at least it works! After updating the code, go to the "Web/static/js" folder and run the `yarn install` command. --- Web/Presenters/templates/Admin/@layout.xml | 50 ++++++++++++-- Web/static/js/package.json | 2 +- Web/static/js/yarn.lock | 76 +++++++++++----------- 3 files changed, 83 insertions(+), 45 deletions(-) diff --git a/Web/Presenters/templates/Admin/@layout.xml b/Web/Presenters/templates/Admin/@layout.xml index 788bba8d..7b1a30f3 100644 --- a/Web/Presenters/templates/Admin/@layout.xml +++ b/Web/Presenters/templates/Admin/@layout.xml @@ -6,6 +6,7 @@ {include title} - {_admin} {$instance_name} @@ -21,12 +22,49 @@ -
+
    -
    - - -
    +
  • +
    + + +
    +
  • +
  • + + +
@@ -34,7 +72,7 @@
-
+