[libadwaita/wip/exalm/inspector-fixes: 2/5] inspector-page: Don't reset color scheme when opening
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/inspector-fixes: 2/5] inspector-page: Don't reset color scheme when opening
- Date: Wed, 29 Sep 2021 13:23:44 +0000 (UTC)
commit 22b4d35c87238acdd8a5ab7b6d99ce5f204634f5
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Wed Sep 29 18:04:18 2021 +0500
inspector-page: Don't reset color scheme when opening
Setting supports-color-schemes can affect colors as we can't have
non-default colors when it's false. Reverse the order and set
color scheme first, before we lose it.
src/inspector/adw-inspector-page.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/inspector/adw-inspector-page.c b/src/inspector/adw-inspector-page.c
index 52056a5a..c953b0a1 100644
--- a/src/inspector/adw-inspector-page.c
+++ b/src/inspector/adw-inspector-page.c
@@ -186,12 +186,12 @@ adw_inspector_page_init (AdwInspectorPage *self)
adw_settings_start_override (self->settings);
- supports = adw_settings_get_system_supports_color_schemes (self->settings);
- gtk_switch_set_active (self->support_color_schemes_switch, supports);
-
color_scheme = adw_settings_get_color_scheme (self->settings);
adw_combo_row_set_selected (self->color_scheme_row, color_scheme);
+ supports = adw_settings_get_system_supports_color_schemes (self->settings);
+ gtk_switch_set_active (self->support_color_schemes_switch, supports);
+
hc = adw_settings_get_high_contrast (self->settings);
gtk_switch_set_active (self->high_contrast_switch, hc);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]