summaryrefslogtreecommitdiff
path: root/editor/editor_themes.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-08-13 12:54:57 +0200
committerGitHub <noreply@github.com>2018-08-13 12:54:57 +0200
commit68ab428d4d2cbb3bd9d86798a0ce09b7bfcdd9f5 (patch)
treed8fafa6566c488bfe04372a3f3a0717f7c2155a7 /editor/editor_themes.cpp
parent623529ce2fad5328a920666845bc558b0acceb99 (diff)
parent81fb81de9d9fe7ae075bd06a3877d6cb452af67f (diff)
Merge pull request #20155 from Tunous/line-edit-clear
Add clear button to search fields
Diffstat (limited to 'editor/editor_themes.cpp')
-rw-r--r--editor/editor_themes.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp
index 0a22026591..76fc7fd0cd 100644
--- a/editor/editor_themes.cpp
+++ b/editor/editor_themes.cpp
@@ -828,6 +828,8 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
theme->set_color("font_color", "LineEdit", font_color);
theme->set_color("cursor_color", "LineEdit", font_color);
theme->set_color("selection_color", "LineEdit", font_color_selection);
+ theme->set_color("clear_button_color", "LineEdit", font_color);
+ theme->set_color("clear_button_color_pressed", "LineEdit", accent_color);
// TextEdit
theme->set_stylebox("normal", "TextEdit", style_widget);