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>
@@ -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;36
const OWN_META: u32 = 0xc9a28c;36
const OWN_META: u32 = 0xc9a28c;37
const OWN_READ: u32 = 0xf5c4a5;37
const OWN_READ: u32 = 0xf5c4a5;38
const DROP_BACKGROUND: u32 = 0xce6a3b14;38
const DROP_BACKGROUND: u32 = 0xce6a3b14;39
const SELECTION: u32 = 0xce6a3b66;39
const CODE_BACKGROUND: u32 = 0x0b0b0c;40
const CODE_BACKGROUND: u32 = 0x0b0b0c;40
const BADGE_MUTED: u32 = 0x3f3f42;41
const BADGE_MUTED: u32 = 0x3f3f42;41
const TOAST_MENTION: u32 = 0x2e1d15;42
const 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);