mirror of https://github.com/odrling/Aegisub
Add option to enable experimental dark mode
This commit is contained in:
parent
5944d7999c
commit
061a860e2e
|
@ -16,7 +16,8 @@
|
||||||
"Save Charset" : "UTF-8",
|
"Save Charset" : "UTF-8",
|
||||||
"Save UI State" : true,
|
"Save UI State" : true,
|
||||||
"Show Toolbar" : true,
|
"Show Toolbar" : true,
|
||||||
"Toolbar Icon Size" : 16
|
"Toolbar Icon Size" : 16,
|
||||||
|
"Dark Mode" : false
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -224,6 +224,12 @@ bool AegisubApp::OnInit() {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__WXMSW__) && wxVERSION_NUMBER >= 3300
|
||||||
|
if (OPT_GET("App/Dark Mode")->GetBool()) {
|
||||||
|
MSWEnableDarkMode(wxApp::DarkMode_Always);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Init commands.
|
// Init commands.
|
||||||
cmd::init_builtin_commands();
|
cmd::init_builtin_commands();
|
||||||
|
|
||||||
|
|
|
@ -228,6 +228,11 @@ void Interface(wxTreebook *book, Preferences *parent) {
|
||||||
auto tl_assistant = p->PageSizer(_("Translation Assistant"));
|
auto tl_assistant = p->PageSizer(_("Translation Assistant"));
|
||||||
p->OptionAdd(tl_assistant, _("Skip over whitespace"), "Tool/Translation Assistant/Skip Whitespace");
|
p->OptionAdd(tl_assistant, _("Skip over whitespace"), "Tool/Translation Assistant/Skip Whitespace");
|
||||||
|
|
||||||
|
#if defined(__WXMSW__) && wxVERSION_NUMBER >= 3300
|
||||||
|
auto dark_mode = p->PageSizer(_("Dark Mode"));
|
||||||
|
p->OptionAdd(dark_mode, _("Enable experimental dark mode (restart required)"), "App/Dark Mode");
|
||||||
|
#endif
|
||||||
|
|
||||||
p->SetSizerAndFit(p->sizer);
|
p->SetSizerAndFit(p->sizer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue