From issue #3446: remove the "Use system theme" option + slight rework

of the Preferences general panel.
This commit is contained in:
Hombre
2016-11-17 01:50:03 +01:00
parent 8801570693
commit 0ab931c287
7 changed files with 16 additions and 58 deletions

View File

@@ -373,7 +373,6 @@ void Options::setDefaults ()
lastSaveAsPath = "";
overwriteOutputFile = false; // if TRUE, existing output JPGs/PNGs are overwritten, instead of adding ..-1.jpg, -2.jpg etc.
theme = "RawTherapee";
useSystemTheme = false;
maxThumbnailHeight = 250;
maxCacheEntries = 20000;
thumbInterp = 1;
@@ -791,10 +790,6 @@ int Options::readFromFile (Glib::ustring fname)
theme = keyFile.get_string ("General", "Theme");
}
if (keyFile.has_key ("General", "UseSystemTheme")) {
useSystemTheme = keyFile.get_boolean ("General", "UseSystemTheme");
}
if ( keyFile.has_key ("General", "DarkFramesPath")) {
rtSettings.darkFramesPath = keyFile.get_string ("General", "DarkFramesPath");
}
@@ -1836,7 +1831,6 @@ int Options::saveToFile (Glib::ustring fname)
keyFile.set_string ("General", "Language", language);
keyFile.set_boolean ("General", "LanguageAutoDetect", languageAutoDetect);
keyFile.set_string ("General", "Theme", theme);
keyFile.set_boolean ("General", "UseSystemTheme", useSystemTheme);
keyFile.set_string ("General", "Version", VERSION);
keyFile.set_string ("General", "DarkFramesPath", rtSettings.darkFramesPath);
keyFile.set_string ("General", "FlatFieldsPath", rtSettings.flatFieldsPath);