diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-12-22 12:32:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-22 12:32:26 +0100 |
commit | 2f2724a40f5862694c7a729b20e2db0d74ae3265 (patch) | |
tree | 82f4c7346d850460f22a5ef1d74ed2e2137ea19b | |
parent | 0df1122acc6eede2047efcb18f9bcedf64dd7fe2 (diff) | |
parent | 6ee9833c6f40919cda2802c4d8133601841584f9 (diff) |
Merge pull request #34536 from timothyqiu/line-edit-icon
Set proper icon for LineEdit in editor theme
-rw-r--r-- | editor/editor_themes.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index a38d6d1f21..6ac20e6719 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -861,6 +861,7 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) { theme->set_stylebox("normal", "LineEdit", style_widget); theme->set_stylebox("focus", "LineEdit", style_widget_focus); theme->set_stylebox("read_only", "LineEdit", style_widget_disabled); + theme->set_icon("clear", "LineEdit", theme->get_icon("GuiClose", "EditorIcons")); theme->set_color("read_only", "LineEdit", font_color_disabled); theme->set_color("font_color", "LineEdit", font_color); theme->set_color("font_color_selected", "LineEdit", mono_color); |