mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Added windows based dark mode detection via config override
This commit is contained in:
@@ -74,6 +74,11 @@ namespace GHelper.UI
|
||||
return false;
|
||||
}
|
||||
|
||||
if (uiMode is not null && uiMode.ToLower() == "windows")
|
||||
{
|
||||
return CheckSystemDarkModeStatus();
|
||||
}
|
||||
|
||||
using var key = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Themes\Personalize");
|
||||
var registryValueObject = key?.GetValue("AppsUseLightTheme");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user