Skip to content

Commit

Permalink
Update visuals.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Sep 17, 2024
1 parent ac1dddc commit a64a2cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/egui/src/text_selection/visuals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ pub fn paint_text_selection(
galley_pos + vec2(left, row.min_y()),
galley_pos + vec2(right, row.max_y()),
);
let weak_color = color.linear_multiply(0.5);
let _shape_idx = ui.painter().rect_filled(rect, 0.0, weak_color);
let _shape_idx = ui.painter().rect_filled(rect, 0.0, color);

let rect = Rect::from_min_max(pos2(left, row.min_y()), pos2(right, row.max_y()));
let mesh = &mut row.visuals.mesh;
Expand Down

0 comments on commit a64a2cf

Please sign in to comment.