FIX: privacy dialog dark mode (STUDIO-2345)

Change-Id: Icd44d4b83bd9785869f68c04e6d4e38524e4b46a
This commit is contained in:
chunmao.guo authored and Lane.Wei committed 2023-04-17 15:39:02 +08:00
1 parent a401c0fa2e
commit 7eb3aa8104
2 files changed
+11 -1

No files matched your search

+4
View File
@@ -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();
}