1
0
mirror of synced 2025-01-10 21:41:53 +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 <content/helpers/diagrams.hpp>
#include <fonts/vscode_icons.hpp>
#include <hex/api/task_manager.hpp>
#include <hex/ui/imgui_imhex_extensions.h>
@ -115,7 +116,7 @@ namespace hex::plugin::builtin {
ImGuiExt::TextFormatted("{}", m_dataMimeType);
ImGui::SameLine();
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();
} else {
ImGuiExt::TextFormatted("{}", m_dataMimeType);

View File

@ -290,7 +290,7 @@ namespace hex::plugin::builtin {
ImGui::SameLine();
// 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();
} else {

View File

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