summaryrefslogtreecommitdiff
path: root/src/config/ConfigurationInterfaces.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2018-09-30 14:11:00 +0200
committerJörg Frings-Fürst <debian@jff.email>2018-09-30 14:11:00 +0200
commit0ac947a9070322180e94d1b71e30836cce4d74bc (patch)
tree4a6f3923c250377536a5004ed203768111a1d27f /src/config/ConfigurationInterfaces.vala
parenteca5837e235a356c8db9416bbbc13577db3e6f76 (diff)
parent01b2b5ec9177046f64c6d0a6e73a6ac8a42089a1 (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/config/ConfigurationInterfaces.vala')
-rw-r--r--src/config/ConfigurationInterfaces.vala20
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;