diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2018-09-30 14:09:20 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2018-09-30 14:09:20 +0200 |
commit | 5e9f4eea451a77ba3b93db3747841ed2bd969e9f (patch) | |
tree | 75046a38ca68975261d853a2e56ff7bf6b3e1daa /src/config/ConfigurationInterfaces.vala | |
parent | 18b52c2983a1b3409011f72d27f15de576c5eb1c (diff) |
New upstream version 0.30.1upstream/0.30.1
Diffstat (limited to 'src/config/ConfigurationInterfaces.vala')
-rw-r--r-- | src/config/ConfigurationInterfaces.vala | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/config/ConfigurationInterfaces.vala b/src/config/ConfigurationInterfaces.vala index c785144..8af5a73 100644 --- a/src/config/ConfigurationInterfaces.vala +++ b/src/config/ConfigurationInterfaces.vala @@ -21,7 +21,7 @@ public enum FuzzyPropertyState { public enum ConfigurableProperty { AUTO_IMPORT_FROM_LIBRARY = 0, - BG_COLOR_NAME, + GTK_THEME_VARIANT, TRANSPARENT_BACKGROUND_TYPE, TRANSPARENT_BACKGROUND_COLOR, COMMIT_METADATA_TO_MASTERS, @@ -100,8 +100,8 @@ public enum ConfigurableProperty { case AUTO_IMPORT_FROM_LIBRARY: return "AUTO_IMPORT_FROM_LIBRARY"; - case BG_COLOR_NAME: - return "BG_COLOR_NAME"; + case GTK_THEME_VARIANT: + return "GTK_THEME_VARIANT"; case TRANSPARENT_BACKGROUND_TYPE: return "TRANSPARENT_BACKGROUND_TYPE"; @@ -376,7 +376,7 @@ public abstract class ConfigurationFacade : Object { auto_import_from_library_changed(); break; - case ConfigurableProperty.BG_COLOR_NAME: + case ConfigurableProperty.GTK_THEME_VARIANT: bg_color_name_changed(); break; @@ -449,21 +449,21 @@ public abstract class ConfigurationFacade : Object { } // - // bg color name + // GTK theme variant // - public virtual string get_bg_color_name() { + public virtual bool get_gtk_theme_variant() { try { - return get_engine().get_string_property(ConfigurableProperty.BG_COLOR_NAME); + return get_engine().get_bool_property(ConfigurableProperty.GTK_THEME_VARIANT); } catch (ConfigurationError err) { on_configuration_error(err); - return ""; + return true; } } - public virtual void set_bg_color_name(string color_name) { + public virtual void set_gtk_theme_variant(bool dark) { try { - get_engine().set_string_property(ConfigurableProperty.BG_COLOR_NAME, color_name); + get_engine().set_bool_property(ConfigurableProperty.GTK_THEME_VARIANT, dark); } catch (ConfigurationError err) { on_configuration_error(err); return; |