From 6bfdb7ca4eaec1074f913ccceb2f73bac74b6574 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 14 Jan 2025 22:10:58 +0100 Subject: [PATCH] fix: Make sure provider switch buttons and close button don't overlap --- plugins/builtin/source/content/ui_items.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/builtin/source/content/ui_items.cpp b/plugins/builtin/source/content/ui_items.cpp index 812f04f98..19e5ebc9e 100644 --- a/plugins/builtin/source/content/ui_items.cpp +++ b/plugins/builtin/source/content/ui_items.cpp @@ -439,6 +439,8 @@ namespace hex::plugin::builtin { ImGui::PushStyleColor(ImGuiCol_TabSelected, ImGui::GetColorU32(ImGuiCol_MenuBarBg)); ImGui::PushStyleColor(ImGuiCol_TabDimmedSelected, ImGui::GetColorU32(ImGuiCol_MenuBarBg)); + + ImGui::GetCurrentWindow()->WorkRect.Max.x -= 25_scaled; auto providerSelectorVisible = ImGui::BeginTabBar("provider_switcher", ImGuiTabBarFlags_FittingPolicyScroll | ImGuiTabBarFlags_Reorderable | ImGuiTabBarFlags_AutoSelectNewTabs); ImGui::PopStyleColor(2);