mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-18 18:40:49 +00:00
unitframes: unify border values
This commit is contained in:
@@ -45,8 +45,6 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("appearance", "border", "default", "3")
|
||||
pfUI:UpdateConfig("appearance", "border", "actionbars", "-1")
|
||||
pfUI:UpdateConfig("appearance", "border", "unitframes", "-1")
|
||||
pfUI:UpdateConfig("appearance", "border", "groupframes", "-1")
|
||||
pfUI:UpdateConfig("appearance", "border", "raidframes", "-1")
|
||||
pfUI:UpdateConfig("appearance", "border", "panels", "-1")
|
||||
pfUI:UpdateConfig("appearance", "border", "chat", "-1")
|
||||
pfUI:UpdateConfig("appearance", "border", "bags", "-1")
|
||||
|
||||
+4
-4
@@ -545,8 +545,8 @@ function pfUI.uf:RefreshUnit(unit, component)
|
||||
end
|
||||
|
||||
local default_border = pfUI_config.appearance.border.default
|
||||
if pfUI_config.appearance.border.groupframes ~= "-1" then
|
||||
default_border = pfUI_config.appearance.border.groupframes
|
||||
if pfUI_config.appearance.border.unitframes ~= "-1" then
|
||||
default_border = pfUI_config.appearance.border.unitframes
|
||||
end
|
||||
|
||||
local C = pfUI_config
|
||||
@@ -914,8 +914,8 @@ end
|
||||
function pfUI.uf.UpdateFrameSize(self)
|
||||
local unit = self.label .. self.id
|
||||
local default_border = pfUI_config.appearance.border.default
|
||||
if pfUI_config.appearance.border.groupframes ~= "-1" then
|
||||
default_border = pfUI_config.appearance.border.groupframes
|
||||
if pfUI_config.appearance.border.unitframes ~= "-1" then
|
||||
default_border = pfUI_config.appearance.border.unitframes
|
||||
end
|
||||
|
||||
local spacing = self.config.pspace
|
||||
|
||||
Reference in New Issue
Block a user