diff --git a/data/resources/style.css b/data/resources/style.css index 16a57f0..8c2bd5e 100644 --- a/data/resources/style.css +++ b/data/resources/style.css @@ -40,6 +40,11 @@ button.small { font-size: 0.8rem; } +.chip.circular { + border-radius: 24px; + padding: 2px 2px; +} + .sourceview { padding: 4px 8px; } diff --git a/src/widgets/window.rs b/src/widgets/window.rs index 6e55d4e..c2b191b 100644 --- a/src/widgets/window.rs +++ b/src/widgets/window.rs @@ -616,7 +616,7 @@ impl NotifyWindow { } fn build_subscription_ui(sub: &Subscription) -> impl glib::IsA { - let b = gtk::Box::builder().spacing(8).build(); + let b = gtk::Box::builder().spacing(4).build(); let label = gtk::Label::builder() .xalign(0.0) @@ -629,8 +629,9 @@ impl NotifyWindow { .sync_create() .build(); - let counter_chip = Self::build_chip("1+"); + let counter_chip = Self::build_chip("●"); counter_chip.add_css_class("chip--info"); + counter_chip.add_css_class("circular"); counter_chip.set_visible(false); let counter_chip_clone = counter_chip.clone(); sub.connect_unread_count_notify(move |sub| {