mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlCore: IsDarkThemeEnabled flag
git-svn-id: svn://ultimatepp.org/upp/trunk@12913 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
25fea8d9da
commit
33df3ece07
4 changed files with 32 additions and 1 deletions
|
|
@ -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); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue