mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX: privacy dialog dark mode (STUDIO-2345)
Change-Id: Icd44d4b83bd9785869f68c04e6d4e38524e4b46a
This commit is contained in:
@@ -171,6 +171,10 @@ bool PrivacyUpdateDialog::ShowReleaseNote(std::string content)
|
||||
void PrivacyUpdateDialog::RunScript(std::string script)
|
||||
{
|
||||
WebView::RunScript(m_vebview_release_note, script);
|
||||
std::string switch_dark_mode_script = "SwitchDarkMode(";
|
||||
switch_dark_mode_script += wxGetApp().app_config->get("dark_color_mode") == "1" ? "true" : "false";
|
||||
switch_dark_mode_script += ");";
|
||||
WebView::RunScript(m_vebview_release_note, switch_dark_mode_script);
|
||||
script.clear();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user