Dark mode

News and discussion of the PC port of Oolite.

Moderators: winston, another_commander

Post Reply
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6742
Joined: Wed Feb 28, 2007 7:54 am

Dark mode

Post 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.
User avatar
Redspear
---- E L I T E ----
---- E L I T E ----
Posts: 2710
Joined: Thu Jun 20, 2013 10:22 pm
Location: On the moon Thought, orbiting the planet Ignorance, looking through a telescope with the lens cap on

Re: Dark mode

Post 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
User avatar
hiran
Theorethicist
Posts: 2418
Joined: Fri Mar 26, 2021 1:39 pm
Location: a parallel world I created for myself. Some call it a singularity...

Re: Dark mode

Post 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.
Sunshine - Moonlight - Good Times - Oolite
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6742
Joined: Wed Feb 28, 2007 7:54 am

Re: Dark mode

Post 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.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6742
Joined: Wed Feb 28, 2007 7:54 am

Re: Dark mode

Post by another_commander »

PR merged. The latest nightly from github contains the dark mode feature, as well as phkb's scripted galactic jump.
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4841
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Dark mode

Post by phkb »

I'm loving dark mode! Very nice!
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6742
Joined: Wed Feb 28, 2007 7:54 am

Re: Dark mode

Post 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
User avatar
nijineko
---- E L I T E ----
---- E L I T E ----
Posts: 356
Joined: Wed Jul 04, 2007 3:37 pm
Location: two strange quarks short of a graviton....
Contact:

Re: Dark mode

Post by nijineko »

Oh, that was something I wanted since 2013, lol. Thank you.
arukibito ga michi wo erabu no ka, michi ga arukibito wo erabu no deshou ka?
User avatar
Cholmondely
Archivist
Archivist
Posts: 5497
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: Dark mode

Post by Cholmondely »

nijineko wrote: Fri Jan 31, 2025 12:23 am
Oh, that was something I wanted since 2013, lol. Thank you.
Welcome back!

It will be interesting to hear how you think things have changed since 2013! And there is a "pm" awaiting thy perusal...
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
Post Reply