Add a "night/dark mode"


As you can see in Youtube, there you can find a switch to change between “normal mode theme” with bright colors and a “night mode theme” with black and gray. GNOME and its default theme Adwaita has a normal theme and dark theme. This kind of thing help people who works with the computer in day and night by allowing to adjusts the mode better suits them.

My idea it’s to add a “night/dark mode” that unlike the examples above, works automatically, changing from normal mode to dark mode when certain time has passed, using system time or hardware clock as reference (e.g. it automatically enables itself at 10PM and disables at 8AM).

In order to maintain consistency and a clear look, all the themes should have a normal/daylight mode and a dark/night mode. If there is a theme doesn’t have an alternative mode then it uses the same look all the day. If there is a theme that’s dark by default, it’s up to the developer to find a way to make it a night mode or not.

Another thing would be also to automatically adjust color temperature from colder to warmer tones depending on the time of the day, that could be also another option, or both at the same time.


This “auto-mode” would be optional, I’m sure.
I doubt that our drivers can set colour temperature and don’t know how complete the hardware docs of the manufacturers are in that regard.

I’d say a good first step would be for people interested in this to create light/dark themes for ThemeManager.


Of course it would be optional. Nothing non-essential should be forced to end-user.

Before even thinking about creating dark themes, we need a ThemeManager that can handle themes, and even extend themes capabilities to allow more options (such as, if Haiku gets accelerated graphics support, to support transparencies).



The Appearance preferences let you set dark colours, as miqlas’ linked thread shows. ThemeManager from HaikuDepot lets you save and switch themes. Transparency and acceleration doesn’t play into it. Or you want more than a “night/dark” mode after all.


I think the general gist is that such a theme set up has been pushed into glass elevator… Beyond R1. It will be cool to have. It is not essential for the R1 release, unless someone wants to step in to implement it and get the all the bugs worked out before R1/stable. The theming capabilities of Haiku are already far more advanced than BeOS R5.


Does thememanager actually work, though? Last time I tried it about three months ago, it did nothing. I’m asking because I really need to rice Haiku for nerd cred and I’m not good enough to write new themes yet.


Working here. Has been for as long as I remember…


Yep, it does. I am an idiot and I didn’t know I had to install themes. Also, where does one acquire other decorators? I installed the extra themes available on ThemeManager’s GitHub page, but I don’t have the required decorators.


I don’t think there are currently other Decorators available anywhere, but the included old BeOS Decorator.

And you don’t need to install themes to make use of ThemeManager. I use it to switch between the Haiku default theme and my only very slightly changed custom one when taking screenshots for documentation, for example.
Likewise, the people that want a night/dark mode could create one and switch to that when they need it.


There are two decorators, in Haiku source tree, that don’t support stack and tile. A windows 95 decorator and a Mac OS 9 decorator. Not very useful…


Do you know how “nerd cred” works? Here, read this:

You’re welcome. :grin: