We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51b38f8 commit 30728abCopy full SHA for 30728ab
src/Widgets/Panel.vala
@@ -274,11 +274,15 @@ public class Wingpanel.Widgets.Panel : Gtk.EventBox {
274
private void update_background (Services.BackgroundState state, uint animation_duration) {
275
if (style_provider == null) {
276
style_provider = new Gtk.CssProvider ();
277
- style_context.add_provider (style_provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
+ Gtk.StyleContext.add_provider_for_screen (
278
+ Gdk.Screen.get_default (),
279
+ style_provider,
280
+ Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION
281
+ );
282
}
283
284
string css = """
- .panel {
285
+ panel {
286
transition: all %ums cubic-bezier(0.4, 0, 0.2, 1);
287
288
""".printf (animation_duration);
0 commit comments