@julian phentomlabs advice worked for my question, for the launch I will get help from a friend that has experience with hosting stuff ^^
Force/use Night mode plugin by psyckobunny by default
Unsolved
Technical Support
-
Re: Dark/night Mode to ignore or add Less CSS on admin Dashboard
Hello everyone, hello @psychobunny @psychobunny-0
I installed the psychobunny/nodebb-plugin-night-mode plugin and my custom CSS works great.
My question is that I would like to know if it was possible to force the activation of night mode for all users by default, while leaving them the possibility to switch to the default theme.
thanks in advance
-
here the JS CODE:
"use strict"; $(document).ready(function () { var panel = $('<li class="lights-out"><a title="Dark Theme" href="#"><i class="fa fa-fw fa-lightbulb-o"></i><span class="visible-xs-inline">Dark Theme</span></a></li>'); $('ul#logged-in-menu').prepend(panel); $('ul#logged-out-menu').prepend(panel); if (utils.findBootstrapEnvironment() === 'xs') { $('#menu').prepend(panel); } var enabled = localStorage.getItem('user:theme') === 'lights-out'; $('body').toggleClass('lights-out', enabled); panel.on('click', function () { enabled = !$('body').hasClass('lights-out'); $('body').toggleClass('lights-out', enabled); localStorage.setItem('user:theme', enabled ? 'lights-out' : ''); }); panel.find('a').tooltip({ placement: 'bottom', title: 'Dark Theme', }); });
Suggested Topics
-
-
-
-
Default Admin Password
Unsolved Technical Support -
Copyright © 2023 NodeBB | Contributors