Pref: Theme: Solves #10136

This commit is contained in:
Paddle
2023-08-10 09:53:19 +02:00
committed by wwmayer
parent b6444b5164
commit 3899304b37
2 changed files with 4 additions and 1 deletions

View File

@@ -377,6 +377,8 @@ void DlgSettingsGeneral::saveThemes()
QString sheet = QString::fromStdString(hGrp->GetASCII("StyleSheet"));
bool tiledBackground = hGrp->GetBool("TiledBackground", false);
Application::Instance->setStyleSheet(sheet, tiledBackground);
themeChanged = false;
}
void DlgSettingsGeneral::loadThemes()

View File

@@ -84,6 +84,8 @@ void DlgSettingsTheme::saveStyleSheet()
hGrp->SetASCII("StyleSheet", (const char*)sheet.toByteArray());
bool tiledBackground = hGrp->GetBool("TiledBackground", false);
Application::Instance->setStyleSheet(sheet.toString(), tiledBackground);
styleSheetChanged = false;
}
void DlgSettingsTheme::loadStyleSheet()
@@ -142,7 +144,6 @@ void DlgSettingsTheme::loadStyleSheet()
void DlgSettingsTheme::onStyleSheetChanged(int index) {
Q_UNUSED(index);
Base::Console().Warning("Hello");
styleSheetChanged = true;
}