CtrlCore: IsDarkThemeEnabled flag

git-svn-id: svn://ultimatepp.org/upp/trunk@12913 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2019-03-29 08:53:32 +00:00
parent 25fea8d9da
commit 33df3ece07
4 changed files with 32 additions and 1 deletions

View file

@ -842,6 +842,20 @@ bool Ctrl::IsUHDEnabled()
return ApplicationUHDEnabled;
}
bool ApplicationDarkThemeEnabled;
void Ctrl::SetDarkThemeEnabled(bool set)
{
ApplicationDarkThemeEnabled = set;
ReSkin();
}
bool Ctrl::IsDarkThemeEnabled()
{
return ApplicationDarkThemeEnabled;
}
Font StdFontZ(int height) { return FontZ(Font::STDFONT, height); }
Font SansSerifZ(int height) { return FontZ(Font::SANSSERIF, height); }
Font SerifZ(int height) { return FontZ(Font::SERIF, height); }