1
0
mirror of synced 2024-11-28 01:20:51 +01:00

impr: Remove border from (?) hover button

This commit is contained in:
WerWolv 2024-05-17 20:47:22 +02:00
parent 0ef3be1851
commit 663b99ed64

View File

@ -511,6 +511,7 @@ namespace ImGuiExt {
PushStyleColor(ImGuiCol_ButtonHovered, ImVec4(0, 0, 0, 0));
PushStyleColor(ImGuiCol_ButtonActive, ImVec4(0, 0, 0, 0));
PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0, GetStyle().FramePadding.y));
PushStyleVar(ImGuiStyleVar_FrameBorderSize, 0.0F);
PushStyleColor(ImGuiCol_Text, iconColor);
Button("(?)");
@ -523,7 +524,7 @@ namespace ImGuiExt {
EndTooltip();
}
PopStyleVar();
PopStyleVar(2);
PopStyleColor(3);
}