diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-25 14:13:21 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-25 14:13:21 +0100 |
commit | a3390b6f1c61f0c30be2a8a91be3aaa36fcaa4e3 (patch) | |
tree | f55263634eae335fe55b762eaa6c16333e98db09 /LibGUI/GTextEditor.cpp | |
parent | 4d3478aa7157bde0f8e54df4464531abe901c7b5 (diff) | |
download | serenity-a3390b6f1c61f0c30be2a8a91be3aaa36fcaa4e3.zip |
GTextEditor: Draw a simple border around single-line editors.
Diffstat (limited to 'LibGUI/GTextEditor.cpp')
-rw-r--r-- | LibGUI/GTextEditor.cpp | 2 |
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) |