HandyControl icon indicating copy to clipboard operation
HandyControl copied to clipboard

A better theme enum?

Open ms-somanna opened this issue 2 years ago • 0 comments

Right now there is a an enum with light and dark values: Themes.Light and Themes.Dark And for switching to system theme we need to set IsUsingSystemTheme = true.

How about having a enum to include the system theme:

Themes.Light, Themes.Dark, Themes.System and Themes.SystemWithDefaultAccentColor

When Themes.System is selected the background color scheme and accent color follows the system theme. This the same as setting IsUsingSystemTheme = True.

And, When Themes.SystemWithDefaultAccent is selected the background color scheme follows the system theme. But the Accent color remains default. This the same as setting

IsUsingSystemTheme =  True
AccentBrush = null

ms-somanna avatar Nov 01 '21 17:11 ms-somanna