diff --git a/UI/MailboxFrame.lua b/UI/MailboxFrame.lua
index 5b84e87..f1da651 100644
--- a/UI/MailboxFrame.lua
+++ b/UI/MailboxFrame.lua
@@ -17,8 +17,13 @@ local mailboxClickCatcher = nil
-- OnLoad
function Guda_MailboxFrame_OnLoad(self)
+ -- Apply border visibility setting
+ if MailboxFrame.UpdateBorderVisibility then
+ MailboxFrame:UpdateBorderVisibility()
+ end
+
-- Set up initial backdrop
- addon:ApplyBackdrop(self, "DEFAULT_FRAME")
+ -- (No longer needed here as UpdateBorderVisibility handles it)
-- Set up search box placeholder
local searchBox = getglobal(self:GetName().."_SearchBar_SearchBox")
@@ -53,6 +58,11 @@ end
-- OnShow
function Guda_MailboxFrame_OnShow(self)
+ -- Apply border visibility setting
+ if MailboxFrame.UpdateBorderVisibility then
+ MailboxFrame:UpdateBorderVisibility()
+ end
+
-- Apply frame transparency
if Guda_ApplyBackgroundTransparency then
Guda_ApplyBackgroundTransparency()
@@ -61,6 +71,16 @@ function Guda_MailboxFrame_OnShow(self)
MailboxFrame:Update()
end
+-- Update border visibility
+function MailboxFrame:UpdateBorderVisibility()
+ local hideBorders = addon.Modules.DB:GetSetting("hideBorders")
+ if hideBorders then
+ Guda:ApplyBackdrop(Guda_MailboxFrame, "MINIMALIST_BORDER", "DEFAULT")
+ else
+ Guda:ApplyBackdrop(Guda_MailboxFrame, "DEFAULT_FRAME", "DEFAULT")
+ end
+end
+
-- OnHide
function Guda_MailboxFrame_OnHide(self)
-- Close any open dropdown menus when the mailbox frame is hidden
diff --git a/UI/MailboxFrame.xml b/UI/MailboxFrame.xml
index 8c9e87c..9975466 100644
--- a/UI/MailboxFrame.xml
+++ b/UI/MailboxFrame.xml
@@ -136,26 +136,31 @@
-
+
-
+
-
+
-
+
-
+
+
+
+
+
+
@@ -190,12 +195,6 @@
-
-
- this:SetBackdropBorderColor(0.4, 0.4, 0.4)
- this:SetBackdropColor(0.15, 0.15, 0.15, 0.5)
-
-
diff --git a/UI/SettingsPopup.lua b/UI/SettingsPopup.lua
index 56f4030..a57b499 100644
--- a/UI/SettingsPopup.lua
+++ b/UI/SettingsPopup.lua
@@ -368,7 +368,7 @@ function Guda_ApplyBackgroundTransparency()
local transparency = Guda.Modules.DB:GetSetting("bgTransparency") or 0.15
local alpha = 1.0 - transparency
- local frames = { "Guda_BagFrame", "Guda_BankFrame", "Guda_SettingsPopup", "Guda_QuestItemBar" }
+ local frames = { "Guda_BagFrame", "Guda_BankFrame", "Guda_MailboxFrame", "Guda_SettingsPopup", "Guda_QuestItemBar" }
for _, frameName in ipairs(frames) do
local frame = getglobal(frameName)
if frame then
@@ -603,6 +603,15 @@ function Guda_SettingsPopup_HideBordersCheckbox_OnClick(self)
end
end
+ local mailboxFrame = getglobal("Guda_MailboxFrame")
+ if mailboxFrame then
+ if isChecked then
+ Guda:ApplyBackdrop(mailboxFrame, "MINIMALIST_BORDER", "DEFAULT")
+ else
+ Guda:ApplyBackdrop(mailboxFrame, "DEFAULT_FRAME", "DEFAULT")
+ end
+ end
+
-- Update border visibility on settings frame
if SettingsPopup.UpdateBorderVisibility then
SettingsPopup:UpdateBorderVisibility()