You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
[Scene] Add SceneStringNames::font(_size/_color)
This commit is contained in:
@@ -76,7 +76,7 @@ void AnimationLibraryEditor::_add_library_validate(const String &p_name) {
|
||||
}
|
||||
|
||||
if (error != "") {
|
||||
add_library_validate->add_theme_color_override("font_color", get_theme_color(SNAME("error_color"), EditorStringName(Editor)));
|
||||
add_library_validate->add_theme_color_override(SceneStringName(font_color), get_theme_color(SNAME("error_color"), EditorStringName(Editor)));
|
||||
add_library_validate->set_text(error);
|
||||
add_library_dialog->get_ok_button()->set_disabled(true);
|
||||
} else {
|
||||
@@ -89,7 +89,7 @@ void AnimationLibraryEditor::_add_library_validate(const String &p_name) {
|
||||
add_library_validate->set_text(TTR("Library name is valid."));
|
||||
}
|
||||
}
|
||||
add_library_validate->add_theme_color_override("font_color", get_theme_color(SNAME("success_color"), EditorStringName(Editor)));
|
||||
add_library_validate->add_theme_color_override(SceneStringName(font_color), get_theme_color(SNAME("success_color"), EditorStringName(Editor)));
|
||||
add_library_dialog->get_ok_button()->set_disabled(false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user