Call place in the call bar is a pill button (call icon, filled, hover like other buttons)
Browse files at this commit935daa555c2c7d68ddae6b09b154e4b01b72b445Parent: 0577590- style
- call place in the call bar is a pill button (call icon, filled, hover like other buttons)
1 changed file +16 -2
crates/client/src/gui/call_bar.rsmodified+16 -2
| @@ -126,19 +126,33 @@ pub fn view(bar: CallBar, actions: CallActions, t: Tokens) -> Div { | ||
| 126 | 126 | .h(px(size::ROW + space::MD)) |
| 127 | 127 | .px(px(space::LG)) |
| 128 | 128 | .child( |
| 129 | - div() | |
| 129 | + band(space::XS) | |
| 130 | 130 | .id("bar_place") |
| 131 | 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 | 141 | .cursor_pointer() |
| 134 | 142 | .tip("Go to call") |
| 135 | 143 | .on_click({ |
| 136 | 144 | let go = run(&actions.go); |
| 137 | 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 | 152 | .child( |
| 140 | 153 | words(bar.place, Text::Ui, Ink::Paper, t) |
| 141 | 154 | .font_weight(FontWeight::MEDIUM) |
| 155 | + .min_w_0() | |
| 142 | 156 | .truncate(), |
| 143 | 157 | ), |
| 144 | 158 | ) |