From e8f799d0107c4e9d06a6e9da8a481e84d01042da Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 15 Aug 2025 19:24:48 +0200 Subject: [PATCH] impr: Make nightly commit hash easier to read --- plugins/builtin/source/content/welcome_screen.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/builtin/source/content/welcome_screen.cpp b/plugins/builtin/source/content/welcome_screen.cpp index 4600da33b..f33b5c0d3 100644 --- a/plugins/builtin/source/content/welcome_screen.cpp +++ b/plugins/builtin/source/content/welcome_screen.cpp @@ -42,6 +42,7 @@ #include #include #include +#include namespace hex::plugin::builtin { @@ -313,7 +314,13 @@ namespace hex::plugin::builtin { ImGui::SetCursorPosY(ImGui::GetCursorPosY() + 5_scaled); ImGui::Image(*s_nightlyTexture, s_nightlyTexture->getSize()); - ImGuiExt::InfoTooltip(fmt::format("{0}\n\nCommit: {1}@{2}", "hex.builtin.welcome.nightly_build"_lang, ImHexApi::System::getCommitBranch(), ImHexApi::System::getCommitHash(true)).c_str()); + ImGuiExt::InfoTooltip(fmt::format("{0}\n\n", "hex.builtin.welcome.nightly_build"_lang).c_str()); + + ImGui::PushStyleColor(ImGuiCol_Text, ImGui::GetStyleColorVec4(ImGuiCol_TextDisabled)); + fonts::Default().push(0.75F); + ImGuiExt::InfoTooltip(fmt::format("{0}@{1}", ImHexApi::System::getCommitBranch(), ImHexApi::System::getCommitHash(true)).c_str()); + fonts::Default().pop(); + ImGui::PopStyleColor(); ImGui::SetCursorPos(cursor); }