mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 17:58:03 -06:00
FIX: privacy dialog dark mode (STUDIO-2345)
Change-Id: Icd44d4b83bd9785869f68c04e6d4e38524e4b46a
This commit is contained in:
parent
a401c0fa2e
commit
7eb3aa8104
2 changed files with 11 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue