trevorsandy / lpub3d

An LDraw™ editor for LEGO® style digital building instructions.
https://trevorsandy.github.io/lpub3d/
131 stars 19 forks source link

On startup, set theme based on Windows system theme #700

Closed trevorsandy closed 1 year ago

trevorsandy commented 1 year ago

Subject

Add Preference flag to automatically detect the system theme (on Windows) then set the LPub3D theme accordingly.

Environment

Version of LPub3D - 2.4.7 Operating system - All

Solution

This behaviour will query the Windows registry key:

Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize, AppsUseLightTheme.

If the returned value is true, LPub3D will enable the Default theme else, it will enable the Dark theme.

By default, this Preference flag is set to On (true). You can change this setting in the Preferences dialog.

System_Preference

Cheers,

trevorsandy commented 1 year ago

This behaviour has been implemented.

Cheers,