diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-08 11:13:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-08 11:13:24 +0100 |
commit | a66e55069e6794ff5bf7d7a39e797e5be2a7df4a (patch) | |
tree | 16a459437dea42fc78a7a0993c5bf437bea74d0b /editor/rename_dialog.cpp | |
parent | dc17cce995a5958fe608221aa089ff912853a744 (diff) | |
parent | 6eeeb9a63ce6f9dc6134429ed9c6cf92b1a8f2ed (diff) |
Merge pull request #57796 from akien-mga/revert-sname-theme-setters
Diffstat (limited to 'editor/rename_dialog.cpp')
-rw-r--r-- | editor/rename_dialog.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/rename_dialog.cpp b/editor/rename_dialog.cpp index 835551c4af..c6a4c0d86a 100644 --- a/editor/rename_dialog.cpp +++ b/editor/rename_dialog.cpp @@ -391,9 +391,9 @@ void RenameDialog::_update_preview(String new_text) { // New name is identical to the old one. Don't color it as much to avoid distracting the user. const Color accent_color = EditorNode::get_singleton()->get_gui_base()->get_theme_color(SNAME("accent_color"), SNAME("Editor")); const Color text_color = EditorNode::get_singleton()->get_gui_base()->get_theme_color(SNAME("default_color"), SNAME("RichTextLabel")); - lbl_preview->add_theme_color_override(SNAME("font_color"), accent_color.lerp(text_color, 0.5)); + lbl_preview->add_theme_color_override("font_color", accent_color.lerp(text_color, 0.5)); } else { - lbl_preview->add_theme_color_override(SNAME("font_color"), EditorNode::get_singleton()->get_gui_base()->get_theme_color(SNAME("success_color"), SNAME("Editor"))); + lbl_preview->add_theme_color_override("font_color", EditorNode::get_singleton()->get_gui_base()->get_theme_color(SNAME("success_color"), SNAME("Editor"))); } } @@ -479,7 +479,7 @@ void RenameDialog::_error_handler(void *p_self, const char *p_func, const char * self->has_errors = true; self->lbl_preview_title->set_text(TTR("Regular Expression Error:")); - self->lbl_preview->add_theme_color_override(SNAME("font_color"), EditorNode::get_singleton()->get_gui_base()->get_theme_color(SNAME("error_color"), SNAME("Editor"))); + self->lbl_preview->add_theme_color_override("font_color", EditorNode::get_singleton()->get_gui_base()->get_theme_color(SNAME("error_color"), SNAME("Editor"))); self->lbl_preview->set_text(vformat(TTR("At character %s"), err_str)); } |