1
0
mirror of synced 2025-01-11 05:42:15 +01:00

impr: Use info icon for more help hovers

This commit is contained in:
WerWolv 2025-01-04 19:21:22 +01:00
parent fd0635cb82
commit e68abefe48
3 changed files with 4 additions and 3 deletions

View File

@ -4,6 +4,7 @@
#include <imgui.h> #include <imgui.h>
#include <content/helpers/diagrams.hpp> #include <content/helpers/diagrams.hpp>
#include <fonts/vscode_icons.hpp>
#include <hex/api/task_manager.hpp> #include <hex/api/task_manager.hpp>
#include <hex/ui/imgui_imhex_extensions.h> #include <hex/ui/imgui_imhex_extensions.h>
@ -115,7 +116,7 @@ namespace hex::plugin::builtin {
ImGuiExt::TextFormatted("{}", m_dataMimeType); ImGuiExt::TextFormatted("{}", m_dataMimeType);
ImGui::SameLine(); ImGui::SameLine();
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0, 0)); ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0, 0));
ImGuiExt::HelpHover("hex.builtin.information_section.magic.octet_stream_warning"_lang); ImGuiExt::HelpHover("hex.builtin.information_section.magic.octet_stream_warning"_lang, ICON_VS_INFO);
ImGui::PopStyleVar(); ImGui::PopStyleVar();
} else { } else {
ImGuiExt::TextFormatted("{}", m_dataMimeType); ImGuiExt::TextFormatted("{}", m_dataMimeType);

View File

@ -290,7 +290,7 @@ namespace hex::plugin::builtin {
ImGui::SameLine(); ImGui::SameLine();
// Draw help info for the expressions // Draw help info for the expressions
ImGuiExt::HelpHover("hex.builtin.view.highlight_rules.help_text"_lang); ImGuiExt::HelpHover("hex.builtin.view.highlight_rules.help_text"_lang, ICON_VS_INFO);
ImGui::PopID(); ImGui::PopID();
} else { } else {

View File

@ -187,7 +187,7 @@ namespace hex::plugin::builtin {
ImGui::SameLine(); ImGui::SameLine();
if (auto description = section->getUnlocalizedDescription(); !description.empty()) { if (auto description = section->getUnlocalizedDescription(); !description.empty()) {
ImGui::SameLine(); ImGui::SameLine();
ImGuiExt::HelpHover(Lang(description)); ImGuiExt::HelpHover(Lang(description), ICON_VS_INFO);
} }
// Draw settings gear on the right // Draw settings gear on the right