Fixed size of minimize button

This commit is contained in:
antopilo
2025-01-04 03:12:48 -05:00
parent 0efc76bfaa
commit 342513e2e5

View File

@@ -233,8 +233,7 @@ namespace Nuake {
int iconWidth = std::max(MinimizeTexture->GetWidth(), 24);
int iconHeight = std::max(MinimizeTexture->GetHeight(), 24);
const float padY = (buttonHeight - (float)iconHeight) / 2.0f;
if (ImGui::InvisibleButton("Minimize", ImVec2(iconWidth, iconHeight)))
if (ImGui::InvisibleButton("Minimize", ImVec2(buttonWidth, buttonHeight)))
{
glfwIconifyWindow(Window::Get()->GetHandle());
}