diff --git a/editor/editor_about.cpp b/editor/editor_about.cpp index 66827f9c9cb..f88ff814123 100644 --- a/editor/editor_about.cpp +++ b/editor/editor_about.cpp @@ -136,7 +136,7 @@ EditorAbout::EditorAbout() { version_btn = memnew(LinkButton); String hash = String(VERSION_HASH); if (hash.length() != 0) { - hash = "." + hash.left(9); + hash = " " + vformat("[%s]", hash.left(9)); } version_btn->set_text(VERSION_FULL_NAME + hash); // Set the text to copy in metadata as it slightly differs from the button's text. diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 40d1121e465..20edf41204e 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -6583,7 +6583,7 @@ EditorNode::EditorNode() { version_btn->set_text(VERSION_FULL_CONFIG); String hash = String(VERSION_HASH); if (hash.length() != 0) { - hash = "." + hash.left(9); + hash = " " + vformat("[%s]", hash.left(9)); } // Set the text to copy in metadata as it slightly differs from the button's text. version_btn->set_meta(META_TEXT_TO_COPY, "v" VERSION_FULL_BUILD + hash); diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index 69337993122..0befdc10626 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -2576,7 +2576,7 @@ ProjectManager::ProjectManager() { version_btn = memnew(LinkButton); String hash = String(VERSION_HASH); if (hash.length() != 0) { - hash = "." + hash.left(9); + hash = " " + vformat("[%s]", hash.left(9)); } version_btn->set_text("v" VERSION_FULL_BUILD + hash); // Fade the version label to be less prominent, but still readable.