BlueGit

ict rusty-teams

fix(app): visible text selection highlight

The selection color passed the 6-digit MENTION_BACKGROUND to rgba(), which reads it as RRGGBBAA. The result was a near-black green at 14 % alpha. The selection is now copper at 40 %.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

metis Daniel Däschle · pushed by metis

Authored 2026-10-07 · 7 weeks ago

Hash
0ff1db9678b4c8ec8c90a133a089afb7d4007d52
Parent
09fc9ebf
1 file changed +2 −1
crates/app/src/theme.rs +2 −1
@@ -36,6 +36,7 @@ const MENTION_BACKGROUND_OWN: u32 = 0x3b1d11;
36 36 const OWN_META: u32 = 0xc9a28c;
37 37 const OWN_READ: u32 = 0xf5c4a5;
38 38 const DROP_BACKGROUND: u32 = 0xce6a3b14;
39 const SELECTION: u32 = 0xce6a3b66;
39 40 const CODE_BACKGROUND: u32 = 0x0b0b0c;
40 41 const BADGE_MUTED: u32 = 0x3f3f42;
41 42 const TOAST_MENTION: u32 = 0x2e1d15;
@@ -108,7 +109,7 @@ pub fn apply(cx: &mut App) {
108 109 colors.ring = color(ACCENT);
109 110 colors.caret = color(ACCENT);
110 111 colors.input = color(BORDER_STRONG);
111 colors.selection = color_with_alpha(MENTION_BACKGROUND);
112 colors.selection = color_with_alpha(SELECTION);
112 113 colors.title_bar = color(BACKGROUND);
113 114 colors.title_bar_border = color(BORDER);
114 115 colors.status_bar = color(BACKGROUND);
@@ -36,6 +36,7 @@ const MENTION_BACKGROUND_OWN: u32 = 0x3b1d11;
36const OWN_META: u32 = 0xc9a28c;
36const OWN_META: u32 = 0xc9a28c;
37const OWN_READ: u32 = 0xf5c4a5;
37const OWN_READ: u32 = 0xf5c4a5;
38const DROP_BACKGROUND: u32 = 0xce6a3b14;
38const DROP_BACKGROUND: u32 = 0xce6a3b14;
39const SELECTION: u32 = 0xce6a3b66;
39const CODE_BACKGROUND: u32 = 0x0b0b0c;
40const CODE_BACKGROUND: u32 = 0x0b0b0c;
40const BADGE_MUTED: u32 = 0x3f3f42;
41const BADGE_MUTED: u32 = 0x3f3f42;
41const TOAST_MENTION: u32 = 0x2e1d15;
42const TOAST_MENTION: u32 = 0x2e1d15;
@@ -108,7 +109,7 @@ pub fn apply(cx: &mut App) {
108 colors.ring = color(ACCENT);
109 colors.ring = color(ACCENT);
109 colors.caret = color(ACCENT);
110 colors.caret = color(ACCENT);
110 colors.input = color(BORDER_STRONG);
111 colors.input = color(BORDER_STRONG);
111 colors.selection = color_with_alpha(MENTION_BACKGROUND);
112 colors.selection = color_with_alpha(SELECTION);
112 colors.title_bar = color(BACKGROUND);
113 colors.title_bar = color(BACKGROUND);
113 colors.title_bar_border = color(BORDER);
114 colors.title_bar_border = color(BORDER);
114 colors.status_bar = color(BACKGROUND);
115 colors.status_bar = color(BACKGROUND);