Reset font size when displaying markdown tooltip.

This commit is contained in:
Bartosz Taudul
2026-06-05 19:19:37 +02:00
parent 912f8c048c
commit e80893ac20

View File

@@ -399,6 +399,7 @@ private:
ImGui::SetMouseCursor( ImGuiMouseCursor_Hand );
ImGui::BeginTooltip();
ImGui::PushFont( g_fonts.normal, FontNormal );
ImGui::PushStyleColor( ImGuiCol_Text, ImVec4( 1.f, 1.f, 1.f, 1.f ) );
if( isSource )
{
@@ -456,6 +457,7 @@ private:
ImGui::TextUnformatted( link.c_str() );
}
ImGui::PopStyleColor();
ImGui::PopFont();
ImGui::EndTooltip();
if( IsMouseClicked( ImGuiMouseButton_Left ) )
{