diff options
| author | volzhs | 2017-05-23 14:36:07 +0900 |
|---|---|---|
| committer | volzhs | 2017-05-23 14:36:07 +0900 |
| commit | de9fb136b14909c2cfd4018e8f68395011802f47 (patch) | |
| tree | 651fb72d1e710e7ac754e469a4055da8d54c937e /editor/editor_themes.cpp | |
| parent | 5b3709d3096df737b8bb2344446be818b0389bfe (diff) | |
| download | godot-de9fb136b14909c2cfd4018e8f68395011802f47.tar.gz godot-de9fb136b14909c2cfd4018e8f68395011802f47.tar.zst godot-de9fb136b14909c2cfd4018e8f68395011802f47.zip | |
Fix disabled style of LineEdit
Diffstat (limited to '')
| -rw-r--r-- | editor/editor_themes.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index c7a41e444..7505b63ef 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -293,12 +293,13 @@ Ref<Theme> create_editor_theme() { // LineEdit Ref<StyleBoxFlat> style_lineedit = make_flat_stylebox(dark_color_1, 4, 4, 4, 4); style_lineedit->set_border_size(1 * EDSCALE); - style_lineedit->set_light_color(light_color_1); - style_lineedit->set_dark_color(light_color_1); + style_lineedit = change_border_color(style_lineedit, light_color_1); Ref<StyleBoxFlat> style_lineedit_disabled = style_lineedit->duplicate(); - style_lineedit_disabled->set_bg_color(light_color_2); + style_lineedit_disabled->set_bg_color(light_color_1); + Ref<StyleBoxFlat> style_lineedit_focus = change_border_color(style_lineedit, highlight_color); + style_lineedit_focus->set_draw_center(false); theme->set_stylebox("normal", "LineEdit", style_lineedit); - theme->set_stylebox("focus", "LineEdit", change_border_color(style_lineedit, highlight_color)); + theme->set_stylebox("focus", "LineEdit", style_lineedit_focus); theme->set_stylebox("read_only", "LineEdit", style_lineedit_disabled); // TextEdit |
