fix: increase contrast between workspace chrome and content

This commit is contained in:
2026-10-24 20:41:56 +08:00
parent 952fc2eff2
commit cd092a9fed
3 changed files with 17 additions and 2 deletions
+10
View File
@@ -79,3 +79,13 @@ bundle and diff whitespace checks passed. No test suite or smoke script was run.
All earlier requirements were reviewed against the table above; isolated Chrome
motion comparison and the explicitly listed cross-window/DPI verification gaps
remain unverified, rather than being marked complete.
## Chrome contrast correction
The continuous top/left chrome now uses #E6E9ED instead of #F5F5F5,
separating it visibly from the #F7F7F5 content canvas. Selected tabs retain
white fill and dark text; inactive titles use muted text. Geometry and borderless
selection are unchanged. After rebuilding and restarting, the native window
showed one startup tab; a + click added a second tab and the two states were
visually checked. Formatting, all-target offline Clippy and release bundling passed.
+2 -1
View File
@@ -1,6 +1,7 @@
use crate::display_list::Color;
pub const BG: Color = Color::rgb(255, 255, 255);
pub const BAR: Color = Color::rgb(245, 245, 245);
// A visibly separate chrome layer against the warm, near-white content canvas.
pub const BAR: Color = Color::rgb(230, 233, 237);
pub const BORDER: Color = Color::rgb(226, 226, 226);
pub const TEXT: Color = Color::rgb(35, 42, 53);
pub const MUTED: Color = Color::rgb(103, 114, 130);
+5 -1
View File
@@ -374,7 +374,11 @@ pub fn draw(
),
value: title.into(),
style: TextStyle::ui(1).scaled(scale),
color: crate::system_ui::theme::TEXT,
color: if active {
crate::system_ui::theme::TEXT
} else {
crate::system_ui::theme::MUTED
},
});
list.push(DrawCommand::PopClip);
if item.navigation.is_none() && item.rect.width >= 44.0 {