[Xfce4-commits] [panel-plugins/xfce4-weather-plugin] 01/01: Improve contrast in weather report, similar to GTK2 + Adwaita (bug #15806)

noreply at xfce.org noreply at xfce.org
Sun Mar 1 13:35:12 CET 2020


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

b   l   u   e   s   a   b   r   e       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 panel-plugins/xfce4-weather-plugin.

commit 5ddbfecdcc1cb300072572775fafbec9084f422d
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Sun Mar 1 07:35:07 2020 -0500

    Improve contrast in weather report, similar to GTK2 + Adwaita (bug #15806)
---
 panel-plugin/weather-summary.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/panel-plugin/weather-summary.c b/panel-plugin/weather-summary.c
index e66abf0..afce939 100644
--- a/panel-plugin/weather-summary.c
+++ b/panel-plugin/weather-summary.c
@@ -947,13 +947,17 @@ make_forecast(plugin_data *data)
     GtkCssProvider *provider = gtk_css_provider_new ();
     gchar *css_string;
 
-    css_string = g_strdup (".forecast-cell.lightbg { background-color: rgba(0, 0, 0, 0.2); }"
-                           ".forecast-cell.darkbg { background-color: rgba(0, 0, 0, 0.4); }");
+    GtkStyleContext *ctx;
+
+    css_string = g_strdup (".forecast-cell.lightbg { background-color: rgba(0, 0, 0, 0.05); }"
+                           ".forecast-cell.darkbg { background-color: rgba(0, 0, 0, 0.6); }");
 
     gtk_css_provider_load_from_data (provider, css_string, -1, NULL);
     gtk_style_context_add_provider_for_screen (screen, GTK_STYLE_PROVIDER (provider), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
 
     grid = gtk_grid_new ();
+    ctx = gtk_widget_get_style_context (GTK_WIDGET (grid));
+    gtk_style_context_add_class (ctx, "background");
 
     gtk_grid_set_row_spacing(GTK_GRID (grid), 0);
     gtk_grid_set_column_spacing(GTK_GRID (grid), 0);

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


More information about the Xfce4-commits mailing list