From 1e12afc3229efdadf70dbf8af73a4e413ef0c9a5 Mon Sep 17 00:00:00 2001 From: GiGaGon <107241144+MeGaGiGaGon@users.noreply.github.com> Date: Mon, 11 Nov 2024 23:03:20 -0800 Subject: [PATCH] Update visuals.rs --- crates/egui/src/text_selection/visuals.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/egui/src/text_selection/visuals.rs b/crates/egui/src/text_selection/visuals.rs index d86f9dc56c2..106e2237dff 100644 --- a/crates/egui/src/text_selection/visuals.rs +++ b/crates/egui/src/text_selection/visuals.rs @@ -58,7 +58,7 @@ pub fn paint_text_selection( // Start by appending the selection rectangle to end of the mesh, as two triangles (= 6 indices): let num_indices_before = mesh.indices.len(); - mesh.add_colored_rect(rect, color); + mesh.add_colored_rect(rect, color.gamma_multiply(0.5)); assert_eq!(num_indices_before + 6, mesh.indices.len()); // Copy out the new triangles: