GTextEditor: Draw a simple border around single-line editors.

This commit is contained in:
Andreas Kling 2019-03-25 14:13:21 +01:00
commit a3390b6f1c
Notes: sideshowbarker 2024-07-19 14:56:33 +09:00

View file

@ -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)