Pref: Theme: Solves #10136
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user