Page 1 of 1

Dark mode

Posted: Sat Aug 05, 2023 3:07 pm
by another_commander
There is an ongoing test on a new branch on github for the Windows port. We can now honor the personalization dark / light color mode setting on Windows. This means that Oolite respects the user's preferences better and can adjust its appearance according to whether it is running on light or dark mode. You will not notice a difference if you are playing in full screen of course, but those who prefer playing in a window (esp. in a dark mode setting) will immediately notice how much more relaxing.the whole experience is.

All apps by default and for compatibility reasons render their windows in light mode, but I just couldn't get over having Oolite with a blazing white title bar sitting in the middle of my screen while the rest of my desktop was nice and dark, so I thought I'd better do something about it and the result is quite nice, if I may say so. A pull request is being prepared, but in the meantime, for those who use dark mode, play in a window often and would rather take care of their eyesight, the auto-build artifact generated from github can be downloaded from here: https://drive.google.com/file/d/1MJJaGu ... sp=sharing

Image

If your system is in light mode, then of course everything will look as it always has. There should be no visible change there, since Oolite has always rendered in light mode till now.

The feature is Windows-only at this time. Please check and let me know if you discover something amiss. This will probably be merged into master after phkb's galactic hyperspace stuff.

Re: Dark mode

Posted: Sat Aug 05, 2023 3:43 pm
by Redspear
another_commander wrote: Sat Aug 05, 2023 3:07 pm
I just couldn't get over having Oolite with a blazing white title bar sitting in the middle of my screen while the rest of my desktop was nice and dark
The very reason I never ran it in a window under normal circumstances.

Looks much better in your picture. A nice addition :? :arrow: :D

Re: Dark mode

Posted: Sat Aug 05, 2023 8:26 pm
by hiran
another_commander wrote: Sat Aug 05, 2023 3:07 pm
There is an ongoing test on a new branch on github for the Windows port. We can now honor the personalization dark / light color mode setting on Windows. This means that Oolite respects the user's preferences better and can adjust its appearance according to whether it is running on light or dark mode. You will not notice a difference if you are playing in full screen of course, but those who prefer playing in a window (esp. in a dark mode setting) will immediately notice how much more relaxing.the whole experience is.
I just checked Ubuntu 22 LTS. Same issue here:
While e.g. the Terminal always comes with dark title bar, Oolite always comes with a bright title bar.
Regardless of the desktop settings.

Nautilus (the file explorer equivalent) adapts to the chosen theme, so somehow it is possible.

Re: Dark mode

Posted: Sun Aug 06, 2023 10:57 am
by another_commander
Just a quick note to say that in the same PR I sneaked in a small change of the default game window size. Instead of 800x600, we now default to 1024x576 (16:9 aspect ratio). Bye bye 4:3, you served as well all these years but it's time to move on.

Re: Dark mode

Posted: Sun Aug 06, 2023 3:43 pm
by another_commander
PR merged. The latest nightly from github contains the dark mode feature, as well as phkb's scripted galactic jump.

Re: Dark mode

Posted: Sun Aug 06, 2023 11:10 pm
by phkb
I'm loving dark mode! Very nice!

Re: Dark mode

Posted: Tue Nov 12, 2024 5:24 pm
by another_commander
Small improvement (although I doubt anyone would have noticed it till now unless you use the titlebar's context menu to close the game or something, still it annoyed me so I fixed it :-)).

Before commit 7f5034b:
Image

After commit 7f5034b:
Image