Skip to content

Commit 2cc4692

Browse files
committed
change unread notification indicator
1 parent 19fe45a commit 2cc4692

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

data/resources/style.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ button.small {
4040
font-size: 0.8rem;
4141
}
4242

43+
.chip.circular {
44+
border-radius: 24px;
45+
padding: 2px 2px;
46+
}
47+
4348
.sourceview {
4449
padding: 4px 8px;
4550
}

src/widgets/window.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ impl NotifyWindow {
616616
}
617617

618618
fn build_subscription_ui(sub: &Subscription) -> impl glib::IsA<gtk::Widget> {
619-
let b = gtk::Box::builder().spacing(8).build();
619+
let b = gtk::Box::builder().spacing(4).build();
620620

621621
let label = gtk::Label::builder()
622622
.xalign(0.0)
@@ -629,8 +629,9 @@ impl NotifyWindow {
629629
.sync_create()
630630
.build();
631631

632-
let counter_chip = Self::build_chip("1+");
632+
let counter_chip = Self::build_chip("");
633633
counter_chip.add_css_class("chip--info");
634+
counter_chip.add_css_class("circular");
634635
counter_chip.set_visible(false);
635636
let counter_chip_clone = counter_chip.clone();
636637
sub.connect_unread_count_notify(move |sub| {

0 commit comments

Comments
 (0)