forge
Explore
Log in

Don't you dare go Hollow

Call place in the call bar is a pill button (call icon, filled, hover like other buttons)

Browse files at this commit

935daa555c2c7d68ddae6b09b154e4b01b72b445Ahmet Kaan GümüşParent: 0577590
  • style
    • call place in the call bar is a pill button (call icon, filled, hover like other buttons)
Show full message
🎨 style: call place in the call bar is a pill button (call icon, filled, hover like other buttons)
crates/client/src/gui/call_bar.rsmodified+16 -2
@@ -126,19 +126,33 @@ pub fn view(bar: CallBar, actions: CallActions, t: Tokens) -> Div {
126126 .h(px(size::ROW + space::MD))
127127 .px(px(space::LG))
128128 .child(
129- div()
129+ band(space::XS)
130130 .id("bar_place")
131131 .flex_none()
132- .max_w(px(size::THUMB))
132+ .max_w(px(size::THUMB + size::CONTROL))
133+ .h(px(size::CONTROL))
134+ .px(px(space::MD))
135+ .rounded_full()
136+ .bg(t.press())
137+ .hover({
138+ let hov = t.hov();
139+ move |style| style.bg(hov)
140+ })
133141 .cursor_pointer()
134142 .tip("Go to call")
135143 .on_click({
136144 let go = run(&actions.go);
137145 move |_, window, cx| go(window, cx)
138146 })
147+ .child(
148+ gpui_kit::component::Icon::new(IconName::Phone)
149+ .size(px(size::ICON_SM))
150+ .text_color(t.dim()),
151+ )
139152 .child(
140153 words(bar.place, Text::Ui, Ink::Paper, t)
141154 .font_weight(FontWeight::MEDIUM)
155+ .min_w_0()
142156 .truncate(),
143157 ),
144158 )