summaryrefslogtreecommitdiff
path: root/LibGUI/GTextEditor.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-25 14:13:21 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-25 14:13:21 +0100
commita3390b6f1c61f0c30be2a8a91be3aaa36fcaa4e3 (patch)
treef55263634eae335fe55b762eaa6c16333e98db09 /LibGUI/GTextEditor.cpp
parent4d3478aa7157bde0f8e54df4464531abe901c7b5 (diff)
downloadserenity-a3390b6f1c61f0c30be2a8a91be3aaa36fcaa4e3.zip
GTextEditor: Draw a simple border around single-line editors.
Diffstat (limited to 'LibGUI/GTextEditor.cpp')
-rw-r--r--LibGUI/GTextEditor.cpp2
1 files changed, 2 insertions, 0 deletions
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)