Automatic Dark Mode switching & Button toggle

It looks like Discourse have been making some more fancy improvements to having a dark mode/theme, that should be very easy to bring over to here.

The first is a button to toggle the theme between light and dark mode that sits in the bottom left-ish part of the screen. This is a big improvement as it greatly simplifies the process, over having to go into your interface settings to switch the theme that way.

The other is to have the dark mode colour scheme automatically switch based on the users' device. On PC for both Windows and Linux there exists third party programs that can switch the UI colour scheme from light to dark depending on the time of day, along with on Android and iOS.

Now there just needs to add an automatic theme switcher to OpenWrt itself. :smile:

2 Likes

Look interesting -- I'll look into this in a bit. Most likely early in Jan.

Thanks for the pointer

2 Likes

Any updates? :eyes:

I have enabled the light/dark toggle which is now part of the core system. If you select "Enable automatic dark mode color palette" in your interface preferences, you should see the selector button on the top bar. The selector can be optionally placed on the side-bar instead - However, this setting is for everyone.

Feature discussion on Discourse forum:

4 Likes

Thanks! The option is there now and works! Strangely it only follows the system setting when the forum theme is set to Light.

Thanks for that. But as Dante says the option only shows when you have set the colour pallet set to Light. I suggest that the old option to manually set the theme to be removed and force Light to be the default pallet for everyone so it doesn't cause any confusion. Though I'm not sure if that would force people who currently have it set to dark.

It is what it is. Default theme is Light, color palette follows the theme unless overridden by user preference. I'm not sure what you mean here, but you are not the only one confused.

Join the discussion over at Discourse Meta.

1 Like

Oh I get it now. The toggle only appears on the top right if you enable the checkbox. Yeah that is confusing. I guess they kept it separate so to not mess with sites and peoples excising settings, at the cost of making it confusing.