安靜外殼落地:預設色板換成「紙」,間距加呼吸,陰影減壓
第一輪只出了色溫小樣的截圖概念(差 6~10),肉眼看不出——對,那正是 研究说的:色溫微調是感受不到的高級感,真正的槓桿是表面分層、 去彩和節奏。這一輪把「紙」整套設成預設: - LIGHT/DARK 全換暖紙系:pane 米白 #FAF9F6、sidebar 明顯深一階、 墨色暖黑 #25221F;accent 從藍 #1680F3 換成黏土橘 #C06244(Claude 的 調性),focus 同色——整個殼從「工程藍」變成「紙與墨」 - DARK 換暖黑階梯(#1E1D1B/#191817/#262422,60° 暖灰,不再藍黑) - 圖表六色改同一個暖家族轉色相(殼去彩、圖表才有意識地用色) - 全域 item_spacing 8/6→9/7、button_padding 10/5→11/6(呼吸節奏) - popup 陰影 alpha 70→52 已驗證: cargo test 501 全綠(含 layout_audit 三寬度,間距加大後無出界); 截圖对比 now↔A:平均像素差從 6→14、強差異像素 5.6%(第一輪的兩倍), 色板取樣 pane 250,249,246 / sidebar 242,240,235 如設計 未驗證: 「高級感」最終要人眼認定;截圖在 1200px 寬,小視窗的密度感 還請在 App 裡實看;手機端 CSS 還是指向舊色板,下一輪同步
This commit is contained in:
parent
f837201648
commit
9a90888e05
|
|
@ -1208,9 +1208,9 @@ impl App {
|
||||||
s.visuals.menu_corner_radius = CornerRadius::same(16);
|
s.visuals.menu_corner_radius = CornerRadius::same(16);
|
||||||
s.spacing.menu_margin = Margin::same(6);
|
s.spacing.menu_margin = Margin::same(6);
|
||||||
s.spacing.menu_spacing = 0.0;
|
s.spacing.menu_spacing = 0.0;
|
||||||
s.visuals.popup_shadow = egui::epaint::Shadow { offset: [0, 10], blur: 30, spread: 0, color: Color32::from_black_alpha(70) };
|
s.visuals.popup_shadow = egui::epaint::Shadow { offset: [0, 10], blur: 30, spread: 0, color: Color32::from_black_alpha(52) };
|
||||||
s.spacing.item_spacing = vec2(8.0, 6.0);
|
s.spacing.item_spacing = vec2(9.0, 7.0);
|
||||||
s.spacing.button_padding = vec2(10.0, 5.0);
|
s.spacing.button_padding = vec2(11.0, 6.0);
|
||||||
// Scrollbars like the web's: a thin quiet rail that widens under the pointer.
|
// Scrollbars like the web's: a thin quiet rail that widens under the pointer.
|
||||||
s.spacing.scroll.floating = true;
|
s.spacing.scroll.floating = true;
|
||||||
s.spacing.scroll.bar_width = 8.0;
|
s.spacing.scroll.bar_width = 8.0;
|
||||||
|
|
|
||||||
106
src/theme.rs
106
src/theme.rs
|
|
@ -42,35 +42,35 @@ const fn hexa(r: u8, g: u8, b: u8, a: u8) -> Color32 {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub const LIGHT: Palette = Palette {
|
pub const LIGHT: Palette = Palette {
|
||||||
pane: hexa(0xff, 0xff, 0xff, 0xff),
|
pane: hexa(0xfa, 0xf9, 0xf6, 0xff),
|
||||||
sidebar: hexa(0xf5, 0xf5, 0xf3, 0xff),
|
sidebar: hexa(0xf2, 0xf0, 0xeb, 0xff),
|
||||||
elevated: hexa(0xff, 0xff, 0xff, 0xff),
|
elevated: hexa(0xff, 0xff, 0xff, 0xff),
|
||||||
hover: hexa(0x1c, 0x1c, 0x1c, 0x0f),
|
hover: hexa(0x25, 0x22, 0x1f, 0x0d),
|
||||||
active: hexa(0x1c, 0x1c, 0x1c, 0x14),
|
active: hexa(0x25, 0x22, 0x1f, 0x15),
|
||||||
primary: hexa(0x1c, 0x1c, 0x1c, 0xff),
|
primary: hexa(0x25, 0x22, 0x1f, 0xff),
|
||||||
text: hexa(0x1c, 0x1c, 0x1c, 0xff),
|
text: hexa(0x25, 0x22, 0x1f, 0xff),
|
||||||
text2: hexa(0x1c, 0x1c, 0x1c, 0xad),
|
text2: hexa(0x25, 0x22, 0x1f, 0xb0),
|
||||||
text3: hexa(0x1c, 0x1c, 0x1c, 0x8f),
|
text3: hexa(0x25, 0x22, 0x1f, 0x85),
|
||||||
on_primary: hexa(0xff, 0xff, 0xff, 0xff),
|
on_primary: hexa(0xfe, 0xfc, 0xfa, 0xff),
|
||||||
bubble_user: hexa(0x1c, 0x1c, 0x1c, 0xff),
|
bubble_user: hexa(0x25, 0x22, 0x1f, 0xff),
|
||||||
border: hexa(0x1c, 0x1c, 0x1c, 0x1f),
|
border: hexa(0x25, 0x22, 0x1f, 0x1a),
|
||||||
focus: hexa(0x1e, 0x86, 0xfc, 0xff),
|
focus: hexa(0xc0, 0x62, 0x44, 0xff),
|
||||||
accent: hexa(0x16, 0x80, 0xf3, 0xff),
|
accent: hexa(0xc0, 0x62, 0x44, 0xff),
|
||||||
danger: hexa(0xcd, 0x28, 0x34, 0xff),
|
danger: hexa(0xb4, 0x2a, 0x2a, 0xff),
|
||||||
attention: hexa(0xff, 0xc8, 0x3d, 0xff),
|
attention: hexa(0xd9, 0xa4, 0x41, 0xff),
|
||||||
attention_bg: hexa(0xff, 0xf6, 0xd6, 0xff),
|
attention_bg: hexa(0xf6, 0xec, 0xd9, 0xff),
|
||||||
muted: hexa(0xf1, 0xf1, 0xee, 0xff),
|
muted: hexa(0xf0, 0xee, 0xe8, 0xff),
|
||||||
// Notion-ish: blue, purple, teal, orange, pink, slate — all muted, all readable on white.
|
// One warm family in six hues (the shell stays achromatic; colour is earned).
|
||||||
chart_cat: [
|
chart_cat: [
|
||||||
hexa(0x23, 0x83, 0xe2, 0xff),
|
hexa(0xc0, 0x62, 0x44, 0xff),
|
||||||
hexa(0x90, 0x65, 0xb0, 0xff),
|
hexa(0x4f, 0x6f, 0x92, 0xff),
|
||||||
hexa(0x0f, 0x7b, 0x6c, 0xff),
|
hexa(0x3e, 0x7c, 0x77, 0xff),
|
||||||
hexa(0xd9, 0x73, 0x0d, 0xff),
|
hexa(0x8a, 0x7a, 0x33, 0xff),
|
||||||
hexa(0xe0, 0x6b, 0x9e, 0xff),
|
hexa(0x8a, 0x5a, 0x78, 0xff),
|
||||||
hexa(0x6e, 0x6c, 0x68, 0xff),
|
hexa(0x7a, 0x74, 0x6c, 0xff),
|
||||||
],
|
],
|
||||||
grid: hexa(0x1c, 0x1c, 0x1c, 0x12),
|
grid: hexa(0x25, 0x22, 0x1f, 0x10),
|
||||||
up: hexa(0x0f, 0x7b, 0x6c, 0xff),
|
up: hexa(0x2e, 0x7d, 0x3f, 0xff),
|
||||||
};
|
};
|
||||||
|
|
||||||
// From the original's renderer (index.eager-common: appearance primitives dark neutral/0..6 and the
|
// From the original's renderer (index.eager-common: appearance primitives dark neutral/0..6 and the
|
||||||
|
|
@ -79,36 +79,34 @@ pub const LIGHT: Palette = Palette {
|
||||||
// user bubble 18%, text 66/54%, border 10%. Accent blue/0 #1884fc, danger red/0 #fc2c3e.
|
// user bubble 18%, text 66/54%, border 10%. Accent blue/0 #1884fc, danger red/0 #fc2c3e.
|
||||||
// Measured from the original's dark window: chat rgb 19, sidebar 16, bubbles/cards 31–33.
|
// Measured from the original's dark window: chat rgb 19, sidebar 16, bubbles/cards 31–33.
|
||||||
pub const DARK: Palette = Palette {
|
pub const DARK: Palette = Palette {
|
||||||
pane: hexa(0x13, 0x13, 0x13, 0xff),
|
pane: hexa(0x1e, 0x1d, 0x1b, 0xff),
|
||||||
sidebar: hexa(0x10, 0x10, 0x10, 0xff),
|
sidebar: hexa(0x19, 0x18, 0x17, 0xff),
|
||||||
elevated: hexa(0x1f, 0x1f, 0x1f, 0xff),
|
elevated: hexa(0x26, 0x24, 0x22, 0xff),
|
||||||
hover: hexa(0xf5, 0xf5, 0xf5, 0x0f),
|
hover: hexa(0xf2, 0xf0, 0xeb, 0x0f),
|
||||||
active: hexa(0xf5, 0xf5, 0xf5, 0x14),
|
active: hexa(0xf2, 0xf0, 0xeb, 0x14),
|
||||||
primary: hexa(0xf5, 0xf5, 0xf5, 0xff),
|
primary: hexa(0xf2, 0xf0, 0xeb, 0xff),
|
||||||
text: hexa(0xf5, 0xf5, 0xf5, 0xff),
|
text: hexa(0xf2, 0xf0, 0xeb, 0xff),
|
||||||
text2: hexa(0xf5, 0xf5, 0xf5, 0xa8),
|
text2: hexa(0xf2, 0xf0, 0xeb, 0xa8),
|
||||||
text3: hexa(0xf5, 0xf5, 0xf5, 0x8a),
|
text3: hexa(0xf2, 0xf0, 0xeb, 0x8a),
|
||||||
on_primary: hexa(0x1f, 0x1f, 0x1f, 0xff),
|
on_primary: hexa(0x1e, 0x1d, 0x1b, 0xff),
|
||||||
bubble_user: hexa(0xf5, 0xf5, 0xf5, 0x2e),
|
bubble_user: hexa(0xf2, 0xf0, 0xeb, 0x2e),
|
||||||
border: hexa(0xf5, 0xf5, 0xf5, 0x1a),
|
border: hexa(0xf2, 0xf0, 0xeb, 0x1a),
|
||||||
focus: hexa(0x18, 0x84, 0xfc, 0xff),
|
focus: hexa(0xd8, 0x83, 0x66, 0xff),
|
||||||
accent: hexa(0x18, 0x84, 0xfc, 0xff),
|
accent: hexa(0xd8, 0x83, 0x66, 0xff),
|
||||||
danger: hexa(0xfc, 0x2c, 0x3e, 0xff),
|
danger: hexa(0xe2, 0x6e, 0x6e, 0xff),
|
||||||
attention: hexa(0xff, 0xc8, 0x3d, 0xff),
|
attention: hexa(0xd9, 0xa4, 0x41, 0xff),
|
||||||
attention_bg: hexa(0x3a, 0x32, 0x12, 0xff),
|
attention_bg: hexa(0x38, 0x31, 0x1f, 0xff),
|
||||||
muted: hexa(0x1d, 0x1d, 0x1d, 0xff),
|
muted: hexa(0x26, 0x24, 0x22, 0xff),
|
||||||
// The same six families, lightened for a dark page (dark-theme palettes must be raised
|
|
||||||
// in lightness to keep contrast, Carbon's dark set does the same).
|
|
||||||
chart_cat: [
|
chart_cat: [
|
||||||
hexa(0x52, 0x9c, 0xca, 0xff),
|
hexa(0xd8, 0x83, 0x66, 0xff),
|
||||||
hexa(0xb4, 0x93, 0xe5, 0xff),
|
hexa(0x7f, 0x9d, 0xc0, 0xff),
|
||||||
hexa(0x4d, 0xab, 0x9a, 0xff),
|
hexa(0x6f, 0xae, 0x9c, 0xff),
|
||||||
hexa(0xe3, 0xa0, 0x62, 0xff),
|
hexa(0xc2, 0xb0, 0x60, 0xff),
|
||||||
hexa(0xf2, 0x91, 0xc0, 0xff),
|
hexa(0xb7, 0x8a, 0xa4, 0xff),
|
||||||
hexa(0xa0, 0x9e, 0x9a, 0xff),
|
hexa(0xa0, 0x9a, 0x92, 0xff),
|
||||||
],
|
],
|
||||||
grid: hexa(0xf5, 0xf5, 0xf5, 0x14),
|
grid: hexa(0xf2, 0xf0, 0xeb, 0x14),
|
||||||
up: hexa(0x4d, 0xab, 0x9a, 0xff),
|
up: hexa(0x6f, 0xb9, 0x7d, 0xff),
|
||||||
};
|
};
|
||||||
|
|
||||||
/// A bot's colour as a quiet background (its selected tile, its cards): a little of it over the
|
/// A bot's colour as a quiet background (its selected tile, its cards): a little of it over the
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue