psmokotnin / osm

Open sound meter. FFT based application for tuning sound systems.
GNU General Public License v3.0
222 stars 35 forks source link

add system brightness toggle for dark mode #77

Open ArthurVinbeau opened 11 months ago

ArthurVinbeau commented 11 months ago

This pr adds a new toggle to use system brightness for dark mode.

Currently the application will fallback to the system dark mode on startup, not caring for the value the user set in the previous session.

The user will have now a checkbox (on by default) to use the system dark mode or set manually dark/light mode, persisting the application restart.

This is my first time using QT so I tried to stick to the existing features as close as possible.

The idea for this feature stems from my brother and I's experience using the application on Windows 10/11 where it starts in light mode despite the system using dark mode. There is a need to look for the root cause but I do not have the necessary skills to do so.