CPU boost per mode

This commit is contained in:
seerge
2023-03-28 14:19:51 +02:00
parent 583cb677d0
commit 28a17562a8
5 changed files with 20 additions and 13 deletions

View File

@@ -30,9 +30,9 @@ namespace CustomControls
return (int)registryValueObject <= 0;
}
public void InitTheme(bool setDPI = true)
public bool InitTheme(bool setDPI = true)
{
bool newDarkTheme = IsDarkTheme();
bool newDarkTheme = CheckSystemDarkModeStatus();
bool changed = (darkTheme != newDarkTheme);
darkTheme = newDarkTheme;
@@ -45,6 +45,8 @@ namespace CustomControls
ControlHelper.Adjust(this, darkTheme, changed);
}
return changed;
}
}