summaryrefslogtreecommitdiffstats
path: root/scene/gui/line_edit.cpp
diff options
context:
space:
mode:
authorSilc 'Tokage' Renew <tokage.it.lab@gmail.com>2021-08-16 11:42:24 +0900
committerSilc 'Tokage' Renew <tokage.it.lab@gmail.com>2021-09-05 18:22:17 +0900
commitfacf8f1883bad95c7617df8abfbc1039feafeda8 (patch)
treeb7dcd4953e5f6f51630298f405c5c05be71b6a24 /scene/gui/line_edit.cpp
parent0bdbce672c3c7b1894a6ac76cb2202966b05e735 (diff)
downloadredot-engine-facf8f1883bad95c7617df8abfbc1039feafeda8.tar.gz
Apply set_read_only() to child classes of EditorProperty elements
Diffstat (limited to 'scene/gui/line_edit.cpp')
-rw-r--r--scene/gui/line_edit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp
index 3605842224..d9acbeb828 100644
--- a/scene/gui/line_edit.cpp
+++ b/scene/gui/line_edit.cpp
@@ -674,7 +674,7 @@ void LineEdit::_notification(int p_what) {
int y_ofs = style->get_offset().y + (y_area - text_height) / 2;
Color selection_color = get_theme_color(SNAME("selection_color"));
- Color font_color = is_editable() ? get_theme_color(SNAME("font_color")) : get_theme_color(SNAME("font_uneditable_color"));
+ Color font_color = get_theme_color(is_editable() ? SNAME("font_color") : SNAME("font_uneditable_color"));
Color font_selected_color = get_theme_color(SNAME("font_selected_color"));
Color caret_color = get_theme_color(SNAME("caret_color"));