From e80b7c5f80df3d47e37ffd5068fe7e641c3224b6 Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Sat, 8 Aug 2026 08:52:06 +0700 Subject: [PATCH] fix(settings): give the About page the section headers the other pages use MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit How shells work, Updates and Server were hand-rolled headings — text_sm at medium weight — so the one page a new user is most likely to open looked like a different app from Terminal or Window & Tabs. Run them through section_header. --- src/ui/settings.rs | 45 ++++++++++----------------------------------- 1 file changed, 10 insertions(+), 35 deletions(-) diff --git a/src/ui/settings.rs b/src/ui/settings.rs index a522c68a..5b13d24d 100644 --- a/src/ui/settings.rs +++ b/src/ui/settings.rs @@ -5063,40 +5063,22 @@ impl Tty7App { // page since it was written, and it pointed at nothing — the one // thing that makes tty7 different from any other terminal was // never stated in the app. + .child(self.section_rule(cx)) + .child(self.section_header(t(L10nKey::SettingsSearchHowShellsWorkTitle), cx)) .child( - v_flex() - .mt_6() - .gap_2() - .child(self.section_rule(cx)) - .child( - div() - .text_sm() - .font_weight(FontWeight::MEDIUM) - .text_color(foreground) - .child(t(L10nKey::SettingsSearchHowShellsWorkTitle)), - ) - .child( - div() - .text_sm() - .text_color(muted_fg) - .child(t(L10nKey::SettingsHowShellsWorkBody)), - ), + div() + .text_sm() + .text_color(muted_fg) + .child(t(L10nKey::SettingsHowShellsWorkBody)), ) + .child(self.section_rule(cx)) + .child(self.section_header(t(L10nKey::SettingsUpdates), cx)) .child( v_flex() - .mt_6() // The section can carry several stacked states at once — // a failure, a staged package, a skipped version. At gap_2 // they read as one paragraph. .gap_3() - .child(self.section_rule(cx)) - .child( - div() - .text_sm() - .font_weight(FontWeight::MEDIUM) - .text_color(foreground) - .child(t(L10nKey::SettingsUpdates)), - ) // A failure the user can act on. Persisted, so it is still // here tomorrow — the old in-memory phase died with the // process and took the only evidence with it. @@ -5348,18 +5330,11 @@ impl Tty7App { http_proxy_control, cx, )) + .child(self.section_rule(cx)) + .child(self.section_header(t(L10nKey::SettingsServer), cx)) .child( v_flex() - .mt_6() .gap_2() - .child(self.section_rule(cx)) - .child( - div() - .text_sm() - .font_weight(FontWeight::MEDIUM) - .text_color(foreground) - .child(t(L10nKey::SettingsServer)), - ) .child( div() .text_sm()