mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 13:37:42 -05:00
impr: Added tooltip informing about font size if no custom font was selected
This commit is contained in:
@@ -438,6 +438,13 @@ namespace hex::plugin::builtin {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (fontPath.empty() && ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled)) {
|
||||
ImGui::SetNextWindowSize(scaled(ImVec2(300, 0)));
|
||||
ImGui::BeginTooltip();
|
||||
ImGui::TextFormattedWrapped("{}", "hex.builtin.setting.font.font_size.tooltip"_lang);
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
|
||||
return false;
|
||||
},
|
||||
true);
|
||||
|
||||
Reference in New Issue
Block a user