From a125cd5000189c1163f9b1bdbd498a44f4ff8cad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Fri, 11 Sep 2026 06:39:34 +0300 Subject: [PATCH] in-web: signed-out default light (family parity), uppercase labels via CSS --- crates/in-web/src/layout.rs | 5 +++-- crates/in-web/tests/http.rs | 6 +++--- style/main.scss | 2 ++ 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/crates/in-web/src/layout.rs b/crates/in-web/src/layout.rs index cf09257..8457719 100644 --- a/crates/in-web/src/layout.rs +++ b/crates/in-web/src/layout.rs @@ -1133,13 +1133,14 @@ pub(crate) async fn document_shell<'a>( // The per-user chrome knobs, read off the request's own user: the theme // into `data-theme`, the interface into `data-ui`, the language into // ``. Signed-out (or unreadable) wears the provision defaults — - // dark and instrument — and the language falls back to `Accept-Language`. + // light and instrument, matching im and iz — and the language falls back + // to `Accept-Language`. let me = match current_user(cx).await { Ok(user) => user.as_ref(), Err(_) => None, }; let asking = me.is_some(); - let dark = me.as_ref().is_none_or(|user| user.theme == "dark"); + let dark = me.as_ref().is_some_and(|user| user.theme == "dark"); let ui = me.as_ref().map_or("instrument", |user| user.ui.as_str()); let lang = crate::i18n::lang(cx).await; diff --git a/crates/in-web/tests/http.rs b/crates/in-web/tests/http.rs index 47a9c30..f017fda 100644 --- a/crates/in-web/tests/http.rs +++ b/crates/in-web/tests/http.rs @@ -4845,13 +4845,13 @@ impl TestApp { #[tokio::test] async fn signed_out_settings_falls_back_to_accept_language() { let app = TestApp::build().await; - - // No header: English chrome on a dark instrument shell. + // No header: English chrome on a light instrument shell. let page = app.get("/settings", None).await; assert_eq!(page.status, StatusCode::OK, "{}", page.text()); assert!(page.text().contains("lang=\"en\""), "{}", page.text()); + // Signed-out wears the family default: a light instrument shell. assert!( - page.text().contains("data-theme=\"dark\""), + !page.text().contains("data-theme=\"dark\""), "{}", page.text() ); diff --git a/style/main.scss b/style/main.scss index bc5f619..ad8526c 100644 --- a/style/main.scss +++ b/style/main.scss @@ -625,6 +625,7 @@ a { font-size: 10px; letter-spacing: 0.08em; color: var(--muted-soft); + text-transform: uppercase; } // The address an invited member signs in as: shown, never edited. @@ -3350,6 +3351,7 @@ img.avatar { font-size: 10px; letter-spacing: 0.08em; color: var(--muted-soft); + text-transform: uppercase; } // A read-only value under a field label — the profile's name, address and