mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-12-18 19:37:00 +00:00
UI: Upgrade to wxWidgets 3.3.1 and add dark mode support for Windows (#1647)
This commit is contained in:
parent
4efa40c51c
commit
08609591ae
77 changed files with 1224 additions and 1645 deletions
|
|
@ -285,6 +285,17 @@ bool CemuApp::OnInit()
|
|||
}
|
||||
|
||||
SetTranslationCallback(TranslationCallback);
|
||||
#if __WXMSW__
|
||||
auto& wxGuiConfig = GetWxGUIConfig();
|
||||
if (wxGuiConfig.msw_theme.GetValue() == static_cast<int>(MSWThemeOption::kAuto))
|
||||
{
|
||||
MSWEnableDarkMode(DarkMode_Auto);
|
||||
}
|
||||
else if (wxGuiConfig.msw_theme.GetValue() == static_cast<int>(MSWThemeOption::kDark))
|
||||
{
|
||||
MSWEnableDarkMode(DarkMode_Always);
|
||||
}
|
||||
#endif
|
||||
|
||||
for (auto&& path : failedWriteAccess)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue