Add an option to set selected text color

This commit is contained in:
Pavel Strakhov 2024-04-01 00:08:06 +01:00 committed by Jeremy Soller
parent 3c94352f3f
commit 10ae9a9b16
4 changed files with 22 additions and 2 deletions

View file

@ -17,6 +17,7 @@ fn redraw(
let font_color = Color::rgb(0xFF, 0xFF, 0xFF);
let cursor_color = Color::rgb(0xFF, 0xFF, 0xFF);
let selection_color = Color::rgba(0xFF, 0xFF, 0xFF, 0x33);
let selected_text_color = Color::rgb(0xF0, 0xF0, 0xFF);
editor.shape_as_needed(true);
if editor.redraw() {
@ -29,6 +30,7 @@ fn redraw(
font_color,
cursor_color,
selection_color,
selected_text_color,
|x, y, w, h, color| {
window.rect(x, y, w, h, orbclient::Color { data: color.0 });
},