From 07718e50db30f9b4f9d650a3b307cd4b229386c9 Mon Sep 17 00:00:00 2001 From: luisangelsm Date: Sat, 24 Jan 2026 18:44:29 +0100 Subject: [PATCH] Don't save the default theme color --- YACReader/options_dialog.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/YACReader/options_dialog.cpp b/YACReader/options_dialog.cpp index 6a987c06..03ee9765 100644 --- a/YACReader/options_dialog.cpp +++ b/YACReader/options_dialog.cpp @@ -247,7 +247,11 @@ void OptionsDialog::saveOptions() Configuration::getConfiguration().setShowTimeInInformation(showTimeInInformationLabel->isChecked()); - settings->setValue(BACKGROUND_COLOR, currentColor); + if (currentColor != ThemeManager::instance().getCurrentTheme().viewer.defaultBackgroundColor) { + settings->setValue(BACKGROUND_COLOR, currentColor); + } else { + settings->remove(BACKGROUND_COLOR); + } // settings->setValue(FIT_TO_WIDTH_RATIO,fitToWidthRatioS->sliderPosition()/100.0); settings->setValue(QUICK_NAVI_MODE, quickNavi->isChecked()); settings->setValue(DISABLE_MOUSE_OVER_GOTO_FLOW, disableShowOnMouseOver->isChecked());