Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Panel Plugins
xfce4-weather-plugin
Commits
5ddbfecd
Commit
5ddbfecd
authored
Mar 01, 2020
by
Sean Davis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve contrast in weather report, similar to GTK2 + Adwaita (bug #15806)
parent
ff0c3ec9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
panel-plugin/weather-summary.c
panel-plugin/weather-summary.c
+6
-2
No files found.
panel-plugin/weather-summary.c
View file @
5ddbfecd
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment