diff --git a/src/app.rs b/src/app.rs index f456881..57926bc 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1208,9 +1208,9 @@ impl App { s.visuals.menu_corner_radius = CornerRadius::same(16); s.spacing.menu_margin = Margin::same(6); 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.spacing.item_spacing = vec2(8.0, 6.0); - s.spacing.button_padding = vec2(10.0, 5.0); + 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(9.0, 7.0); + s.spacing.button_padding = vec2(11.0, 6.0); // Scrollbars like the web's: a thin quiet rail that widens under the pointer. s.spacing.scroll.floating = true; s.spacing.scroll.bar_width = 8.0; diff --git a/src/theme.rs b/src/theme.rs index 1cae311..d72ba3b 100644 --- a/src/theme.rs +++ b/src/theme.rs @@ -42,35 +42,35 @@ const fn hexa(r: u8, g: u8, b: u8, a: u8) -> Color32 { } pub const LIGHT: Palette = Palette { - pane: hexa(0xff, 0xff, 0xff, 0xff), - sidebar: hexa(0xf5, 0xf5, 0xf3, 0xff), + pane: hexa(0xfa, 0xf9, 0xf6, 0xff), + sidebar: hexa(0xf2, 0xf0, 0xeb, 0xff), elevated: hexa(0xff, 0xff, 0xff, 0xff), - hover: hexa(0x1c, 0x1c, 0x1c, 0x0f), - active: hexa(0x1c, 0x1c, 0x1c, 0x14), - primary: hexa(0x1c, 0x1c, 0x1c, 0xff), - text: hexa(0x1c, 0x1c, 0x1c, 0xff), - text2: hexa(0x1c, 0x1c, 0x1c, 0xad), - text3: hexa(0x1c, 0x1c, 0x1c, 0x8f), - on_primary: hexa(0xff, 0xff, 0xff, 0xff), - bubble_user: hexa(0x1c, 0x1c, 0x1c, 0xff), - border: hexa(0x1c, 0x1c, 0x1c, 0x1f), - focus: hexa(0x1e, 0x86, 0xfc, 0xff), - accent: hexa(0x16, 0x80, 0xf3, 0xff), - danger: hexa(0xcd, 0x28, 0x34, 0xff), - attention: hexa(0xff, 0xc8, 0x3d, 0xff), - attention_bg: hexa(0xff, 0xf6, 0xd6, 0xff), - muted: hexa(0xf1, 0xf1, 0xee, 0xff), - // Notion-ish: blue, purple, teal, orange, pink, slate — all muted, all readable on white. + hover: hexa(0x25, 0x22, 0x1f, 0x0d), + active: hexa(0x25, 0x22, 0x1f, 0x15), + primary: hexa(0x25, 0x22, 0x1f, 0xff), + text: hexa(0x25, 0x22, 0x1f, 0xff), + text2: hexa(0x25, 0x22, 0x1f, 0xb0), + text3: hexa(0x25, 0x22, 0x1f, 0x85), + on_primary: hexa(0xfe, 0xfc, 0xfa, 0xff), + bubble_user: hexa(0x25, 0x22, 0x1f, 0xff), + border: hexa(0x25, 0x22, 0x1f, 0x1a), + focus: hexa(0xc0, 0x62, 0x44, 0xff), + accent: hexa(0xc0, 0x62, 0x44, 0xff), + danger: hexa(0xb4, 0x2a, 0x2a, 0xff), + attention: hexa(0xd9, 0xa4, 0x41, 0xff), + attention_bg: hexa(0xf6, 0xec, 0xd9, 0xff), + muted: hexa(0xf0, 0xee, 0xe8, 0xff), + // One warm family in six hues (the shell stays achromatic; colour is earned). chart_cat: [ - hexa(0x23, 0x83, 0xe2, 0xff), - hexa(0x90, 0x65, 0xb0, 0xff), - hexa(0x0f, 0x7b, 0x6c, 0xff), - hexa(0xd9, 0x73, 0x0d, 0xff), - hexa(0xe0, 0x6b, 0x9e, 0xff), - hexa(0x6e, 0x6c, 0x68, 0xff), + hexa(0xc0, 0x62, 0x44, 0xff), + hexa(0x4f, 0x6f, 0x92, 0xff), + hexa(0x3e, 0x7c, 0x77, 0xff), + hexa(0x8a, 0x7a, 0x33, 0xff), + hexa(0x8a, 0x5a, 0x78, 0xff), + hexa(0x7a, 0x74, 0x6c, 0xff), ], - grid: hexa(0x1c, 0x1c, 0x1c, 0x12), - up: hexa(0x0f, 0x7b, 0x6c, 0xff), + grid: hexa(0x25, 0x22, 0x1f, 0x10), + up: hexa(0x2e, 0x7d, 0x3f, 0xff), }; // 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. // Measured from the original's dark window: chat rgb 19, sidebar 16, bubbles/cards 31–33. pub const DARK: Palette = Palette { - pane: hexa(0x13, 0x13, 0x13, 0xff), - sidebar: hexa(0x10, 0x10, 0x10, 0xff), - elevated: hexa(0x1f, 0x1f, 0x1f, 0xff), - hover: hexa(0xf5, 0xf5, 0xf5, 0x0f), - active: hexa(0xf5, 0xf5, 0xf5, 0x14), - primary: hexa(0xf5, 0xf5, 0xf5, 0xff), - text: hexa(0xf5, 0xf5, 0xf5, 0xff), - text2: hexa(0xf5, 0xf5, 0xf5, 0xa8), - text3: hexa(0xf5, 0xf5, 0xf5, 0x8a), - on_primary: hexa(0x1f, 0x1f, 0x1f, 0xff), - bubble_user: hexa(0xf5, 0xf5, 0xf5, 0x2e), - border: hexa(0xf5, 0xf5, 0xf5, 0x1a), - focus: hexa(0x18, 0x84, 0xfc, 0xff), - accent: hexa(0x18, 0x84, 0xfc, 0xff), - danger: hexa(0xfc, 0x2c, 0x3e, 0xff), - attention: hexa(0xff, 0xc8, 0x3d, 0xff), - attention_bg: hexa(0x3a, 0x32, 0x12, 0xff), - muted: hexa(0x1d, 0x1d, 0x1d, 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). + pane: hexa(0x1e, 0x1d, 0x1b, 0xff), + sidebar: hexa(0x19, 0x18, 0x17, 0xff), + elevated: hexa(0x26, 0x24, 0x22, 0xff), + hover: hexa(0xf2, 0xf0, 0xeb, 0x0f), + active: hexa(0xf2, 0xf0, 0xeb, 0x14), + primary: hexa(0xf2, 0xf0, 0xeb, 0xff), + text: hexa(0xf2, 0xf0, 0xeb, 0xff), + text2: hexa(0xf2, 0xf0, 0xeb, 0xa8), + text3: hexa(0xf2, 0xf0, 0xeb, 0x8a), + on_primary: hexa(0x1e, 0x1d, 0x1b, 0xff), + bubble_user: hexa(0xf2, 0xf0, 0xeb, 0x2e), + border: hexa(0xf2, 0xf0, 0xeb, 0x1a), + focus: hexa(0xd8, 0x83, 0x66, 0xff), + accent: hexa(0xd8, 0x83, 0x66, 0xff), + danger: hexa(0xe2, 0x6e, 0x6e, 0xff), + attention: hexa(0xd9, 0xa4, 0x41, 0xff), + attention_bg: hexa(0x38, 0x31, 0x1f, 0xff), + muted: hexa(0x26, 0x24, 0x22, 0xff), chart_cat: [ - hexa(0x52, 0x9c, 0xca, 0xff), - hexa(0xb4, 0x93, 0xe5, 0xff), - hexa(0x4d, 0xab, 0x9a, 0xff), - hexa(0xe3, 0xa0, 0x62, 0xff), - hexa(0xf2, 0x91, 0xc0, 0xff), - hexa(0xa0, 0x9e, 0x9a, 0xff), + hexa(0xd8, 0x83, 0x66, 0xff), + hexa(0x7f, 0x9d, 0xc0, 0xff), + hexa(0x6f, 0xae, 0x9c, 0xff), + hexa(0xc2, 0xb0, 0x60, 0xff), + hexa(0xb7, 0x8a, 0xa4, 0xff), + hexa(0xa0, 0x9a, 0x92, 0xff), ], - grid: hexa(0xf5, 0xf5, 0xf5, 0x14), - up: hexa(0x4d, 0xab, 0x9a, 0xff), + grid: hexa(0xf2, 0xf0, 0xeb, 0x14), + 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