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 {
126 .h(px(size::ROW + space::MD))126 .h(px(size::ROW + space::MD))
127 .px(px(space::LG))127 .px(px(space::LG))
128 .child(128 .child(
129- div()129+ band(space::XS)
130 .id("bar_place")130 .id("bar_place")
131 .flex_none()131 .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+ })
133 .cursor_pointer()141 .cursor_pointer()
134 .tip("Go to call")142 .tip("Go to call")
135 .on_click({143 .on_click({
136 let go = run(&actions.go);144 let go = run(&actions.go);
137 move |_, window, cx| go(window, cx)145 move |_, window, cx| go(window, cx)
138 })146 })
147+ .child(
148+ gpui_kit::component::Icon::new(IconName::Phone)
149+ .size(px(size::ICON_SM))
150+ .text_color(t.dim()),
151+ )
139 .child(152 .child(
140 words(bar.place, Text::Ui, Ink::Paper, t)153 words(bar.place, Text::Ui, Ink::Paper, t)
141 .font_weight(FontWeight::MEDIUM)154 .font_weight(FontWeight::MEDIUM)
155+ .min_w_0()
142 .truncate(),156 .truncate(),
143 ),157 ),
144 )158 )