Any progress on this idea. It's a nice feature and Twitter/YouTube also provides the same functionality. I usually prefer a dark theme during night time but, (as an admin) turning the website dark for everyone would not be a great idea.
Enable Dark Theme on user choice option
"Forget to pay electric bill" ?
I like this concept, I'm sure it'll come to life eventually ?
I assume it would be something like this? ?
I need this feature too, I'm looking into this ?
I see, its a custom theme design made for a 3rd party web browser extension.
- Edited
sijad choose dark mode in front-end, save that settings, regenerate css, etc.
Regenerating css is not necessary. Because then you're assuming css is related to a user, it would require compilation of the same amount of css as you have users. @Felli has a point here, you'd have to ensure the Less compiler is spitting out a light and dark variant and save the state of the user selection (dark, light). Nothing more I think?
Never mind you were thinking the same: flarum/core865#issuecomment-348709128
luceos Regenerating css is not necessary. Because then you're assuming css is related to a user, it would require compilation of the same amount of css as you have users. @Felli has a point here, you'd have to ensure the Less compiler is spitting out a light and dark variant and save the state of the user selection (dark, light). Nothing more I think?
I mean regenerating diff from dark and light css, you see there's a script that parses both light and dark css and only keeps the different, prioritizes remained css selectors by adding a prefix (e.g. a css class). maybe I did over thinking it, but there's two reason for creating this script:
- making dark css manually is not a good solution.
- I'm not sure changing colors in admin section does or does not effect colors in dark mod. for this reason, dark mode colors should regenerated after changing admin settings.
How does the current "theme_dark_mode" setting in the settings table actually work? And can it be utilized given there is a @config-dark-mode LESS variable available?
Is it not possible to make an extension that moves the dark theme option from the admin appearance options to the users settings?
Maybe give admin option of allowing users to control theme or not.