From a3390b6f1c61f0c30be2a8a91be3aaa36fcaa4e3 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 25 Mar 2019 14:13:21 +0100 Subject: [PATCH] GTextEditor: Draw a simple border around single-line editors. --- LibGUI/GTextEditor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/LibGUI/GTextEditor.cpp b/LibGUI/GTextEditor.cpp index 0d33b408bd..3dd3b57774 100644 --- a/LibGUI/GTextEditor.cpp +++ b/LibGUI/GTextEditor.cpp @@ -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)