From 2abedbe4ad52d4475ce8d9aa8c9f26a52a9a5936 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 26 Jul 2025 21:50:03 +0200 Subject: [PATCH] impr: Slightly increase gap between title bar buttons and menu items on macOS --- plugins/builtin/source/content/window_decoration.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/builtin/source/content/window_decoration.cpp b/plugins/builtin/source/content/window_decoration.cpp index 72854a046..5435a4b8a 100644 --- a/plugins/builtin/source/content/window_decoration.cpp +++ b/plugins/builtin/source/content/window_decoration.cpp @@ -443,7 +443,7 @@ namespace hex::plugin::builtin { ImGui::SetNextWindowScroll(ImVec2(0, 0)); #if defined(OS_MACOS) - ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(ImGui::GetStyle().FramePadding.x, 8_scaled)); + ImGui::PushStyleVarY(ImGuiStyleVar_FramePadding, 8_scaled); ON_SCOPE_EXIT { ImGui::PopStyleVar(); }; #endif @@ -466,7 +466,7 @@ namespace hex::plugin::builtin { ImGui::OpenPopup("WindowingMenu"); #elif defined(OS_MACOS) if (!isMacosFullScreenModeEnabled(window)) - ImGui::SetCursorPosX(75_scaled); + ImGui::SetCursorPosX(80_scaled); #endif }