BlueGit

ict rusty-teams

fix(theme): meeting toast buttons readable in light theme

- Snooze icon follows the text color instead of fixed white
- soft fill instead of a hard outline

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

metis Daniel Däschle · pushed by metis

Authored 2026-11-09 · 3 weeks ago

Hash
3c8fb36012b82bf29d86924aff8cddad79101566
Parent
43096276
2 files changed +9 −9
crates/app/src/notify/meeting_view.rs +3 −6
@@ -57,11 +57,9 @@ impl Render for MeetingToastView {
57 57 "meeting-snooze",
58 58 "Snooze",
59 59 IconName::AlarmClock,
60 theme::popup(),
60 theme::popup_hover(),
61 theme::text(),
61 62 )
62 .border_1()
63 .border_color(theme::border_strong())
64 .text_color(theme::text())
65 63 .on_click(move |_, _, cx| {
66 64 cx.stop_propagation();
67 65 snooze_app.update(cx, |state, cx| state.snooze_meeting_toast(toast_id, cx));
@@ -83,8 +81,7 @@ impl Render for MeetingToastView {
83 81 cx.stop_propagation();
84 82 dismiss_app.update(cx, |state, cx| state.dismiss_meeting_toast(toast_id, cx));
85 83 });
86 let join = answer_button("meeting-join", "Join", IconName::Video, theme::accent())
87 .text_color(theme::on_accent())
84 let join = answer_button("meeting-join", "Join", IconName::Video, theme::accent(), theme::on_accent())
88 85 .on_click(move |_, _, cx| {
89 86 cx.stop_propagation();
90 87 join_center.update(cx, |center, cx| center.join_meeting_toast(toast_id, cx));
@@ -57,11 +57,9 @@ impl Render for MeetingToastView {
57 "meeting-snooze",
57 "meeting-snooze",
58 "Snooze",
58 "Snooze",
59 IconName::AlarmClock,
59 IconName::AlarmClock,
60 theme::popup(),
60 theme::popup_hover(),
61 theme::text(),
61 )
62 )
62 .border_1()
63 .border_color(theme::border_strong())
64 .text_color(theme::text())
65 .on_click(move |_, _, cx| {
63 .on_click(move |_, _, cx| {
66 cx.stop_propagation();
64 cx.stop_propagation();
67 snooze_app.update(cx, |state, cx| state.snooze_meeting_toast(toast_id, cx));
65 snooze_app.update(cx, |state, cx| state.snooze_meeting_toast(toast_id, cx));
@@ -83,8 +81,7 @@ impl Render for MeetingToastView {
83 cx.stop_propagation();
81 cx.stop_propagation();
84 dismiss_app.update(cx, |state, cx| state.dismiss_meeting_toast(toast_id, cx));
82 dismiss_app.update(cx, |state, cx| state.dismiss_meeting_toast(toast_id, cx));
85 });
83 });
86 let join = answer_button("meeting-join", "Join", IconName::Video, theme::accent())
84 let join = answer_button("meeting-join", "Join", IconName::Video, theme::accent(), theme::on_accent())
87 .text_color(theme::on_accent())
88 .on_click(move |_, _, cx| {
85 .on_click(move |_, _, cx| {
89 cx.stop_propagation();
86 cx.stop_propagation();
90 join_center.update(cx, |center, cx| center.join_meeting_toast(toast_id, cx));
87 join_center.update(cx, |center, cx| center.join_meeting_toast(toast_id, cx));
crates/app/src/notify/ring_view.rs +6 −3
@@ -52,6 +52,7 @@ pub(super) fn answer_button(
52 52 label: &str,
53 53 glyph: IconName,
54 54 fill: Hsla,
55 ink: Hsla,
55 56 ) -> Stateful<gpui_kit::Div> {
56 57 h_flex()
57 58 .id(id)
@@ -63,12 +64,12 @@ pub(super) fn answer_button(
63 64 .justify_center()
64 65 .rounded_full()
65 66 .bg(fill)
66 .text_color(theme::white())
67 .text_color(ink)
67 68 .text_size(px(13.))
68 69 .font_weight(FontWeight::SEMIBOLD)
69 70 .cursor_pointer()
70 71 .hover(|button| button.opacity(0.85))
71 .child(icon(glyph, 16., theme::white()))
72 .child(icon(glyph, 16., ink))
72 73 .child(label.to_owned())
73 74 }
74 75
@@ -100,7 +101,7 @@ impl Render for RingView {
100 101 let ring_id = self.ring_id;
101 102 let decline_app = self.app.clone();
102 103 let accept_app = self.app.clone();
103 let decline = answer_button("ring-decline", "Decline", IconName::PhoneOff, theme::red())
104 let decline = answer_button("ring-decline", "Decline", IconName::PhoneOff, theme::red(), theme::white())
104 105 .on_click(move |_, _, cx| {
105 106 cx.stop_propagation();
106 107 decline_app.update(cx, |state, cx| state.decline_ring(ring_id, cx));
@@ -110,6 +111,7 @@ impl Render for RingView {
110 111 entry.accept_label(),
111 112 IconName::Phone,
112 113 theme::green(),
114 theme::white(),
113 115 )
114 116 .on_click(move |_, _, cx| {
115 117 cx.stop_propagation();
@@ -124,6 +126,7 @@ impl Render for RingView {
124 126 "Video",
125 127 IconName::Video,
126 128 theme::green(),
129 theme::white(),
127 130 )
128 131 .on_click(move |_, _, cx| {
129 132 cx.stop_propagation();
@@ -52,6 +52,7 @@ pub(super) fn answer_button(
52 label: &str,
52 label: &str,
53 glyph: IconName,
53 glyph: IconName,
54 fill: Hsla,
54 fill: Hsla,
55 ink: Hsla,
55) -> Stateful<gpui_kit::Div> {
56) -> Stateful<gpui_kit::Div> {
56 h_flex()
57 h_flex()
57 .id(id)
58 .id(id)
@@ -63,12 +64,12 @@ pub(super) fn answer_button(
63 .justify_center()
64 .justify_center()
64 .rounded_full()
65 .rounded_full()
65 .bg(fill)
66 .bg(fill)
66 .text_color(theme::white())
67 .text_color(ink)
67 .text_size(px(13.))
68 .text_size(px(13.))
68 .font_weight(FontWeight::SEMIBOLD)
69 .font_weight(FontWeight::SEMIBOLD)
69 .cursor_pointer()
70 .cursor_pointer()
70 .hover(|button| button.opacity(0.85))
71 .hover(|button| button.opacity(0.85))
71 .child(icon(glyph, 16., theme::white()))
72 .child(icon(glyph, 16., ink))
72 .child(label.to_owned())
73 .child(label.to_owned())
73}
74}
74
75
@@ -100,7 +101,7 @@ impl Render for RingView {
100 let ring_id = self.ring_id;
101 let ring_id = self.ring_id;
101 let decline_app = self.app.clone();
102 let decline_app = self.app.clone();
102 let accept_app = self.app.clone();
103 let accept_app = self.app.clone();
103 let decline = answer_button("ring-decline", "Decline", IconName::PhoneOff, theme::red())
104 let decline = answer_button("ring-decline", "Decline", IconName::PhoneOff, theme::red(), theme::white())
104 .on_click(move |_, _, cx| {
105 .on_click(move |_, _, cx| {
105 cx.stop_propagation();
106 cx.stop_propagation();
106 decline_app.update(cx, |state, cx| state.decline_ring(ring_id, cx));
107 decline_app.update(cx, |state, cx| state.decline_ring(ring_id, cx));
@@ -110,6 +111,7 @@ impl Render for RingView {
110 entry.accept_label(),
111 entry.accept_label(),
111 IconName::Phone,
112 IconName::Phone,
112 theme::green(),
113 theme::green(),
114 theme::white(),
113 )
115 )
114 .on_click(move |_, _, cx| {
116 .on_click(move |_, _, cx| {
115 cx.stop_propagation();
117 cx.stop_propagation();
@@ -124,6 +126,7 @@ impl Render for RingView {
124 "Video",
126 "Video",
125 IconName::Video,
127 IconName::Video,
126 theme::green(),
128 theme::green(),
129 theme::white(),
127 )
130 )
128 .on_click(move |_, _, cx| {
131 .on_click(move |_, _, cx| {
129 cx.stop_propagation();
132 cx.stop_propagation();