diff options
| author | volzhs | 2017-05-03 06:02:06 +0900 |
|---|---|---|
| committer | volzhs | 2017-05-03 06:19:15 +0900 |
| commit | 17e8e343fb900c3b308b3a6cb8611a16b476e71e (patch) | |
| tree | 55c64ec319ab91f9ba8468c7f4c65d92044ef385 /scene/gui/spin_box.cpp | |
| parent | 5a6ccce97d350011b599e793cea95aa4e7899395 (diff) | |
| download | godot-17e8e343fb900c3b308b3a6cb8611a16b476e71e.tar.gz godot-17e8e343fb900c3b308b3a6cb8611a16b476e71e.tar.zst godot-17e8e343fb900c3b308b3a6cb8611a16b476e71e.zip | |
Diffstat (limited to 'scene/gui/spin_box.cpp')
| -rw-r--r-- | scene/gui/spin_box.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/scene/gui/spin_box.cpp b/scene/gui/spin_box.cpp index ba8ca6372..049adc6fb 100644 --- a/scene/gui/spin_box.cpp +++ b/scene/gui/spin_box.cpp @@ -192,12 +192,7 @@ void SpinBox::_notification(int p_what) { RID ci = get_canvas_item(); Size2i size = get_size(); - Color color = has_focus() ? line_edit->get_color("font_color_active") : line_edit->get_color("font_color"); - if (!is_editable()) - color = line_edit->get_color("font_color_read_only"); - updown->draw(ci, Point2i(size.width - updown->get_width(), (size.height - updown->get_height()) / 2), color); - - } else if (p_what == NOTIFICATION_FOCUS_EXIT) { + updown->draw(ci, Point2i(size.width - updown->get_width(), (size.height - updown->get_height()) / 2)); } else if (p_what == NOTIFICATION_FOCUS_EXIT) { |
