From 7718901fb8346a75bd203f04e4303d0df007dcd1 Mon Sep 17 00:00:00 2001 From: Vika Date: Wed, 28 Aug 2024 17:54:42 +0300 Subject: Set global CSS instead of adding a style context to every widget --- src/components/tag_pill.rs | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/components/tag_pill.rs') diff --git a/src/components/tag_pill.rs b/src/components/tag_pill.rs index 7579c0e..487add7 100644 --- a/src/components/tag_pill.rs +++ b/src/components/tag_pill.rs @@ -37,15 +37,6 @@ impl FactoryComponent for TagPill { set_valign: gtk::Align::Center, } } - - use gtk::prelude::StyleContextExt; - let css = gtk::CssProvider::new(); - css.load_from_bytes(&glib::Bytes::from_static(b".tag-pill button { - min-height: 30px; - min-width: 30px; -}")); - - root.style_context().add_provider(&css, gtk::STYLE_PROVIDER_PRIORITY_APPLICATION + 2); root } -- cgit 1.4.1