From 935daa555c2c7d68ddae6b09b154e4b01b72b445 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Fri, 27 Nov 2026 23:50:16 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20style:=20call=20place=20in=20the?= =?UTF-8?q?=20call=20bar=20is=20a=20pill=20button=20(call=20icon,=20filled?= =?UTF-8?q?,=20hover=20like=20other=20buttons)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/client/src/gui/call_bar.rs | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/crates/client/src/gui/call_bar.rs b/crates/client/src/gui/call_bar.rs index a6f35af..f33542a 100644 --- a/crates/client/src/gui/call_bar.rs +++ b/crates/client/src/gui/call_bar.rs @@ -126,19 +126,33 @@ pub fn view(bar: CallBar, actions: CallActions, t: Tokens) -> Div { .h(px(size::ROW + space::MD)) .px(px(space::LG)) .child( - div() + band(space::XS) .id("bar_place") .flex_none() - .max_w(px(size::THUMB)) + .max_w(px(size::THUMB + size::CONTROL)) + .h(px(size::CONTROL)) + .px(px(space::MD)) + .rounded_full() + .bg(t.press()) + .hover({ + let hov = t.hov(); + move |style| style.bg(hov) + }) .cursor_pointer() .tip("Go to call") .on_click({ let go = run(&actions.go); move |_, window, cx| go(window, cx) }) + .child( + gpui_kit::component::Icon::new(IconName::Phone) + .size(px(size::ICON_SM)) + .text_color(t.dim()), + ) .child( words(bar.place, Text::Ui, Ink::Paper, t) .font_weight(FontWeight::MEDIUM) + .min_w_0() .truncate(), ), )