- BufferSettings bufferSettings;
- bufferSettings.enableUserStateIcons(ui.showUserStateIcons->isChecked());
-
- // Fonts
- QtUiStyleSettings fontSettings("Fonts");
- if(ui.demoInputLine->font() != QApplication::font())
- fontSettings.setValue("InputLine", ui.demoInputLine->font());
- else
- fontSettings.setValue("InputLine", "");
-
- if(ui.demoBufferView->font() != QApplication::font())
- fontSettings.setValue("BufferView", ui.demoBufferView->font());
- else
- fontSettings.setValue("BufferView", "");
-
- //QTextCharFormat chatFormat = QtUi::style()->format(UiStyle::None);
- //chatFormat.setFont(ui.demoChatView->font());
- //QtUi::style()->setFormat(UiStyle::None, chatFormat, Settings::Custom);
-
- _fontsChanged = false;
+ bool needsStyleReload =
+ ui.useCustomStyleSheet->isChecked() != ui.useCustomStyleSheet->property("storedValue").toBool()
+ || (ui.useCustomStyleSheet->isChecked() && ui.customStyleSheetPath->text() != ui.customStyleSheetPath->property("storedValue").toString());