浏览代码

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

Andreas Kling 6 年之前
父节点
当前提交
a3390b6f1c
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      LibGUI/GTextEditor.cpp

+ 2 - 0
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)