1
0
mirror of synced 2024-11-24 15:50:16 +01:00

ui/ux: Updated dependencies list, make them hyperlinks

This commit is contained in:
WerWolv 2021-03-01 08:59:29 +01:00
parent 3e6865ffa9
commit 7838d420d8

View File

@ -59,22 +59,29 @@ namespace hex {
} }
ImGui::NewLine(); ImGui::NewLine();
const auto Link = [](std::string_view label, std::string_view url) {
if (ImGui::BulletHyperlink(label.data()))
hex::openWebpage(url.data());
};
ImGui::Text("hex.view.help.about.libs"_lang); ImGui::Text("hex.view.help.about.libs"_lang);
ImGui::Separator(); ImGui::Separator();
ImGui::PushStyleColor(ImGuiCol_ChildBg, ImVec4(0.2F, 0.2F, 0.2F, 0.3F)); ImGui::PushStyleColor(ImGuiCol_ChildBg, ImVec4(0.2F, 0.2F, 0.2F, 0.3F));
ImGui::BulletText("ImGui by ocornut"); Link("ImGui by ocornut", "https://github.com/ocornut/imgui");
ImGui::BulletText("imgui_club by ocornut"); Link("imgui_club by ocornut", "https://github.com/ocornut/imgui_club");
ImGui::BulletText("ImGui-Addons by gallickgunner"); Link("imnodes by Nelarius", "https://github.com/Nelarius/imnodes");
ImGui::BulletText("ImGuiColorTextEdit by BalazsJako"); Link("ImGuiColorTextEdit by BalazsJako", "https://github.com/BalazsJako/ImGuiColorTextEdit");
ImGui::BulletText("capstone by aquynh"); Link("capstone by aquynh", "https://github.com/aquynh/capstone");
ImGui::BulletText("JSON for Modern C++ by nlohmann"); Link("JSON for Modern C++ by nlohmann", "https://github.com/nlohmann/json");
Link("YARA by VirusTotal", "https://github.com/VirusTotal/yara");
Link("Native File Dialog Extended by btzy and mlabbe", "https://github.com/btzy/nativefiledialog-extended");
ImGui::NewLine(); ImGui::NewLine();
ImGui::BulletText("GNU libmagic"); Link("GNU libmagic", "http://www.darwinsys.com/file/");
ImGui::BulletText("OpenSSL libcrypto"); Link("GLFW3", "https://github.com/glfw/glfw");
ImGui::BulletText("GLFW3"); Link("LLVM", "https://github.com/llvm/llvm-project");
ImGui::BulletText("LLVM"); Link("Python 3", "https://github.com/python/cpython");
ImGui::BulletText("Python 3"); Link("FreeType", "https://gitlab.freedesktop.org/freetype/freetype");
ImGui::BulletText("FreeType"); Link("Mbed TLS", "https://github.com/ARMmbed/mbedtls");
ImGui::PopStyleColor(); ImGui::PopStyleColor();