]> git.joonet.de Git - adminer.git/commitdiff
AdminerDarkSwitcher: Icon
authorJakub Vrana <jakub@vrana.cz>
Mon, 24 Mar 2025 06:38:33 +0000 (07:38 +0100)
committerJakub Vrana <jakub@vrana.cz>
Mon, 24 Mar 2025 06:38:33 +0000 (07:38 +0100)
plugins/dark-switcher.php

index 2d7e41ebb7f4f602fef25a33e2b9d479ee9a0f13..a77c193da3071d2f78008ca43ca2d09bf315ec63 100644 (file)
@@ -34,8 +34,8 @@ if (saved) {
        }
 
        function navigation($missing) {
-               echo "<label style='position: fixed; bottom: .5em; right: .5em;'><input type='checkbox'> dark</label>"
-                       . Adminer\script("if (adminerDark != null) adminerDarkSet(); mixin(qsl('input'), {onclick: adminerDarkSwitch, checked: adminerDark});") . "\n"
+               echo "<big style='position: fixed; bottom: .5em; right: .5em; cursor: pointer;'>☀</big>"
+                       . Adminer\script("if (adminerDark != null) adminerDarkSet(); qsl('big').onclick = adminerDarkSwitch;") . "\n"
                ;
        }
 }