diff options
| author | Rémi Verschelde | 2017-05-20 07:16:11 +0200 |
|---|---|---|
| committer | GitHub | 2017-05-20 07:16:11 +0200 |
| commit | 231511b2a64d6819183227356f3ac22ed6e518fe (patch) | |
| tree | 3da29aa1b9466292be211e93c5f68b95a8bec841 /scene/gui/line_edit.cpp | |
| parent | 6fd217d7c3afb1f7e4c68f9ab40883593f617a7e (diff) | |
| parent | bb8129304791e8cde23694168b9e121b71161e96 (diff) | |
| download | godot-231511b2a64d6819183227356f3ac22ed6e518fe.tar.gz godot-231511b2a64d6819183227356f3ac22ed6e518fe.tar.zst godot-231511b2a64d6819183227356f3ac22ed6e518fe.zip | |
Merge pull request #8631 from volzhs/editor-theme-custom
New customizable editor theme
Diffstat (limited to 'scene/gui/line_edit.cpp')
| -rw-r--r-- | scene/gui/line_edit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index 8bb6828fa..4ceaeeba0 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -576,7 +576,7 @@ void LineEdit::_notification(int p_what) { RID ci = get_canvas_item(); - Ref<StyleBox> style = has_focus() ? get_stylebox("active") : get_stylebox("normal"); + Ref<StyleBox> style = get_stylebox("normal"); if (!is_editable()) style = get_stylebox("read_only"); @@ -617,7 +617,7 @@ void LineEdit::_notification(int p_what) { int font_ascent = font->get_ascent(); Color selection_color = get_color("selection_color"); - Color font_color = is_editable() ? has_focus() ? get_color("font_color_active") : get_color("font_color") : get_color("font_color_read_only"); + Color font_color = get_color("font_color"); Color font_color_selected = get_color("font_color_selected"); Color cursor_color = get_color("cursor_color"); |
