From 4aba987a6474d1cf3e154149ea719a69a30e1b7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sat, 28 Nov 2026 19:33:42 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style:=20full=20pages=20get=20a?= =?UTF-8?q?=20back=20arrow=20beside=20the=20title=20(Esc=20still=20works)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/client/lang/en/settings_page.txt | 2 +- crates/client/lang/tr/settings_page.txt | 2 +- crates/client/src/gui/settings_page.rs | 46 ++++++++++++++++++------- 3 files changed, 35 insertions(+), 15 deletions(-) diff --git a/crates/client/lang/en/settings_page.txt b/crates/client/lang/en/settings_page.txt index c0b6940..f9d54e7 100644 --- a/crates/client/lang/en/settings_page.txt +++ b/crates/client/lang/en/settings_page.txt @@ -24,4 +24,4 @@ quality = Quality frame_rate = Frame rate codec = Codec share_audio = Share audio -back_esc = esc · back to chat +back_esc = Back (esc) diff --git a/crates/client/lang/tr/settings_page.txt b/crates/client/lang/tr/settings_page.txt index 6f61125..15ae64b 100644 --- a/crates/client/lang/tr/settings_page.txt +++ b/crates/client/lang/tr/settings_page.txt @@ -24,4 +24,4 @@ quality = Kalite frame_rate = Kare hızı codec = Kodek share_audio = Sesi paylaş -back_esc = esc · sohbete dön +back_esc = Geri (esc) diff --git a/crates/client/src/gui/settings_page.rs b/crates/client/src/gui/settings_page.rs index 0a95cb6..38b3d39 100644 --- a/crates/client/src/gui/settings_page.rs +++ b/crates/client/src/gui/settings_page.rs @@ -626,22 +626,42 @@ pub(super) fn frame( .child( div() .pb(px(space::XL)) - .text_size(text(text::TITLE)) - .text_color(palette.tokens.paper()) - .child(title), + .flex() + .items_center() + .gap(px(space::XS)) + .ml(px(-space::SM)) + .child( + clickable("page_back", palette, move |window, cx| { + back.update(cx, |yumush, cx| { + yumush.show_view(View::Chat, window, cx) + }); + }) + .tip(w().settings_page.back_esc) + .size(px(size::CONTROL_SM)) + .flex_shrink_0() + .flex() + .items_center() + .justify_center() + .rounded_full() + .text_color(palette.muted) + .child( + gpui_kit::component::Icon::new( + gpui_kit::assets::IconName::ArrowLeft, + ) + .size(px(size::ICON)), + ), + ) + .child( + div() + .min_w_0() + .text_size(text(text::TITLE)) + .text_color(palette.tokens.paper()) + .child(title), + ), ) .children(index) .child(div().flex_1()) - .children(footer) - .child( - clickable("page_back", palette, move |window, cx| { - back.update(cx, |yumush, cx| yumush.show_view(View::Chat, window, cx)); - }) - .pt(px(space::MD)) - .text_size(text(text::CAPTION)) - .text_color(palette.tokens.faint()) - .child(w().settings_page.back_esc), - ), + .children(footer), ) .child( div()