mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 16:45:08 +00:00
GTextEditor: Draw a simple border around single-line editors.
This commit is contained in:
parent
4d3478aa71
commit
a3390b6f1c
1 changed files with 2 additions and 0 deletions
|
@ -215,6 +215,8 @@ void GTextEditor::paint_event(GPaintEvent& event)
|
|||
|
||||
if (is_focused())
|
||||
painter.draw_rect(item_area_rect, Color::from_rgb(0x84351a));
|
||||
else if (is_single_line())
|
||||
painter.draw_rect(item_area_rect, Color::DarkGray);
|
||||
}
|
||||
|
||||
void GTextEditor::toggle_selection_if_needed_for_event(const GKeyEvent& event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue