Use text height for entity visibility toggle

This commit is contained in:
Simon Lübeß
2024-03-10 15:21:25 +01:00
parent 27c433aba2
commit a87820c7da
@@ -389,7 +389,7 @@ namespace GlitchyEditor.EditWindows
ImGui.Vec4 tintColor = hidden ? *ImGui.GetStyleColorVec4(.TextDisabled) : *ImGui.GetStyleColorVec4(.Text);
if (ImGui.ImageButtonEx(ImGui.GetID("visibilityToggle"), icon, .(16, 16), .Zero, .Ones, .Zero, tintColor))
if (ImGui.ImageButtonEx(ImGui.GetID("visibilityToggle"), icon, .(ImGui.GetTextLineHeight(), ImGui.GetTextLineHeight()), .Zero, .Ones, .Zero, tintColor))
{
flags.Flags ^= .HideInScene;
}