1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Use bullet points in shader editor creation dialog

This is consistent with the script creation dialog.

(cherry picked from commit bce2985615)
This commit is contained in:
Hugo Locurcio
2023-06-24 02:12:13 +02:00
committed by Yuri Sizov
parent e32330473a
commit fe8e7a0b22

View File

@@ -464,7 +464,7 @@ String ShaderCreateDialog::_validate_path(const String &p_path) {
} }
void ShaderCreateDialog::_msg_script_valid(bool valid, const String &p_msg) { void ShaderCreateDialog::_msg_script_valid(bool valid, const String &p_msg) {
error_label->set_text("- " + p_msg); error_label->set_text(String::utf8(" ") + p_msg);
if (valid) { if (valid) {
error_label->add_theme_color_override("font_color", gc->get_theme_color(SNAME("success_color"), SNAME("Editor"))); error_label->add_theme_color_override("font_color", gc->get_theme_color(SNAME("success_color"), SNAME("Editor")));
} else { } else {
@@ -473,7 +473,7 @@ void ShaderCreateDialog::_msg_script_valid(bool valid, const String &p_msg) {
} }
void ShaderCreateDialog::_msg_path_valid(bool valid, const String &p_msg) { void ShaderCreateDialog::_msg_path_valid(bool valid, const String &p_msg) {
path_error_label->set_text("- " + p_msg); path_error_label->set_text(String::utf8(" ") + p_msg);
if (valid) { if (valid) {
path_error_label->add_theme_color_override("font_color", gc->get_theme_color(SNAME("success_color"), SNAME("Editor"))); path_error_label->add_theme_color_override("font_color", gc->get_theme_color(SNAME("success_color"), SNAME("Editor")));
} else { } else {