impr: Use info icon for more help hovers
This commit is contained in:
parent
fd0635cb82
commit
e68abefe48
@ -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);
|
||||||
|
@ -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 {
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user