mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-27 23:37:05 -05:00
impr: Make nightly commit hash easier to read
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user