diff --git a/UI/SettingsPopup.lua b/UI/SettingsPopup.lua index c361d89..c2ab35e 100644 --- a/UI/SettingsPopup.lua +++ b/UI/SettingsPopup.lua @@ -137,7 +137,31 @@ function Guda_SettingsPopup_OnShow(self) -- Update display (might be too tall for current frame size) local frame = getglobal("Guda_SettingsPopup") if frame then - frame:SetHeight(560) + frame:SetHeight(600) + end + + -- Apply border visibility + if SettingsPopup.UpdateBorderVisibility then + SettingsPopup:UpdateBorderVisibility() + end +end + +-- Update border visibility based on setting +function SettingsPopup:UpdateBorderVisibility() + if not addon or not addon.Modules or not addon.Modules.DB then return end + + local frame = getglobal("Guda_SettingsPopup") + if not frame then return end + + local hideBorders = addon.Modules.DB:GetSetting("hideBorders") + if hideBorders == nil then + hideBorders = false + end + + if hideBorders then + addon:ApplyBackdrop(frame, "MINIMALIST_BORDER", "DEFAULT") + else + addon:ApplyBackdrop(frame, "DEFAULT_FRAME", "DEFAULT") end end @@ -499,6 +523,11 @@ function Guda_SettingsPopup_HideBordersCheckbox_OnClick(self) Guda:ApplyBackdrop(bankFrame, "DEFAULT_FRAME", "DEFAULT") end end + + -- Update border visibility on settings frame + if SettingsPopup.UpdateBorderVisibility then + SettingsPopup:UpdateBorderVisibility() + end end -- Quality Border Equipment Checkbox OnLoad diff --git a/UI/SettingsPopup.xml b/UI/SettingsPopup.xml index 602f1fd..267ac5a 100644 --- a/UI/SettingsPopup.xml +++ b/UI/SettingsPopup.xml @@ -3,7 +3,7 @@ - +