[Xfce4-commits] [xfce/xfce4-settings] 46/57: color: Small visual tweak

noreply at xfce.org noreply at xfce.org
Thu Mar 21 22:14:34 CET 2019


This is an automated email from the git hooks/post-receive script.

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfce4-settings.

commit 18e9da301a805d747d7e69262244fe93f6163dbf
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Mon Feb 18 22:49:25 2019 +0100

    color: Small visual tweak
---
 dialogs/color-settings/main.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/dialogs/color-settings/main.c b/dialogs/color-settings/main.c
index 1870684..a088757 100644
--- a/dialogs/color-settings/main.c
+++ b/dialogs/color-settings/main.c
@@ -1072,6 +1072,8 @@ color_settings_dialog_init (GtkBuilder *builder)
 {
     ColorSettings *settings;
     GtkTreeSelection *selection;
+    GObject *paned;
+    GtkCssProvider *provider;
 
     settings = g_new0 (ColorSettings, 1);
     settings->cancellable = g_cancellable_new ();
@@ -1084,6 +1086,17 @@ color_settings_dialog_init (GtkBuilder *builder)
     g_signal_connect_data (settings->client, "device-removed",
                            G_CALLBACK (color_settings_device_removed_cb), settings, 0, 0);
 
+    /* brighten the background of the GtkPaned for better visual grouping */
+    paned = gtk_builder_get_object (builder, "paned");
+    gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (paned)), "color-profiles");
+    provider = gtk_css_provider_new ();
+    gtk_css_provider_load_from_data (provider,
+                                     "paned.color-profiles { background: shade(@theme_bg_color, 1.05); }",
+                                     -1, NULL);
+    gtk_style_context_add_provider (gtk_widget_get_style_context (GTK_WIDGET (paned)),
+                                    GTK_STYLE_PROVIDER (provider),
+                                    GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
+
     settings->label_no_devices = gtk_builder_get_object (builder, "label-no-devices");
 
     /* Devices ListBox */

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list