summary refs log tree commit diff
path: root/src/components
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2024-08-28 17:54:42 +0300
committerVika <vika@fireburn.ru>2024-08-28 17:54:42 +0300
commit7718901fb8346a75bd203f04e4303d0df007dcd1 (patch)
tree720e7935bcfd7216fb4884bc9def280b4b5beda9 /src/components
parent3ca8e690ed58f4267cc4ec132551d24a9a557e85 (diff)
downloadbowl-7718901fb8346a75bd203f04e4303d0df007dcd1.tar.zst
Set global CSS instead of adding a style context to every widget
Diffstat (limited to 'src/components')
-rw-r--r--src/components/tag_pill.rs9
1 files changed, 0 insertions, 9 deletions
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
     }