--- a/src/settingseditor/settingseditor.cpp Sat Feb 01 17:10:11 2020 +0200 +++ b/src/settingseditor/settingseditor.cpp Sat Feb 01 17:20:10 2020 +0200 @@ -1,4 +1,5 @@ #include <QSettings> +#include "gl/common.h" #include "keyboardshortcutseditor.h" #include "settingseditor.h" #include "ui_settingseditor.h" @@ -38,6 +39,7 @@ { this->settings->setValue("locale", this->ui.language->currentData().toString()); this->settings->setValue("Render/MainColor", this->ui.mainColorButton->selectedColor().name()); + this->settings->setValue("Render/BackgroundColor", this->ui.backgroundColorButton->selectedColor().name()); this->librariesEditor.saveSettings(this->settings); } @@ -66,7 +68,12 @@ void SettingsEditor::setDefaults() { this->setCurrentLanguage(this->settings->value("locale", QLocale::system().name()).toString()); - this->ui.mainColorButton->setSelectedColor(this->settings->value("Render/MainColor").toString()); + this->ui.mainColorButton->setSelectedColor(this->settings->value( + "Render/MainColor", + gl::RenderPreferences{}.mainColor).toString()); + this->ui.backgroundColorButton->setSelectedColor(this->settings->value( + "Render/BackgroundColor", + gl::RenderPreferences{}.backgroundColor).toString()); } void SettingsEditor::setCurrentLanguage(const QString& localeCode)