Close #15660: Allow showing window buttons on the left (#20176)

This commit is contained in:
Michael Steenbeek authored and GitHub committed 2023-05-19 10:17:38 +02:00
1 parent e1f7b240da
commit 5e495d63c7
53 files changed
+238 -50

No files matched your search

+10 -2
View File
@@ -2262,8 +2262,16 @@ void WindowBase::ResizeFrame()
// Title
widgets[1].right = width - 2;
// Close button
widgets[2].left = width - 13;
widgets[2].right = width - 3;
if (gConfigInterface.WindowButtonsOnTheLeft)
{
widgets[2].left = 2;
widgets[2].right = 2 + CloseButtonWidth;
}
else
{
widgets[2].left = width - 3 - CloseButtonWidth;
widgets[2].right = width - 3;
}
}
void WindowBase::ResizeFrameWithPage()