From 713d9e0124eef097826a5dd451525678e9f8e46f Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Tue, 5 Apr 2022 07:47:32 -0700 Subject: [PATCH] term: change default selection fg/bg to translucent purplish color I think this looks less jarring than the yellowish selection color, and the translucency looks nicer than changing the fg color completely black as it did previously. --- term/src/color.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/term/src/color.rs b/term/src/color.rs index 82183b52c..a33df9ecb 100644 --- a/term/src/color.rs +++ b/term/src/color.rs @@ -171,8 +171,8 @@ impl ColorPalette { let cursor_border = RgbColor::new_8bpc(0x52, 0xad, 0x70); let cursor_fg = colors[AnsiColor::Black as usize]; - let selection_fg = colors[AnsiColor::Black as usize].into(); - let selection_bg = RgbColor::new_8bpc(0xff, 0xfa, 0xcd).into(); + let selection_fg = SrgbaTuple(0., 0., 0., 0.); + let selection_bg = SrgbaTuple(0.5, 0.4, 0.6, 0.5); let scrollbar_thumb = RgbColor::new_8bpc(0x22, 0x22, 0x22); let split = RgbColor::new_8bpc(0x44, 0x44, 0x44);