impr: Make nightly commit hash easier to read

This commit is contained in:
WerWolv
2025-08-15 19:24:48 +02:00
parent 926cddd69f
commit e8f799d010

View File

@@ -42,6 +42,7 @@
#include <random>
#include <banners/banner_button.hpp>
#include <banners/banner_icon.hpp>
#include <fonts/fonts.hpp>
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);
}