mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-21 20:00:48 +00:00
api: use default border size in case of inherit
This commit is contained in:
@@ -802,6 +802,8 @@ function pfUI.api.GetBorderSize(pref)
|
|||||||
else
|
else
|
||||||
-- add new borders to the pfUI tree
|
-- add new borders to the pfUI tree
|
||||||
local raw = tonumber(pfUI_config.appearance.border[pref])
|
local raw = tonumber(pfUI_config.appearance.border[pref])
|
||||||
|
if raw == -1 then raw = 3 end
|
||||||
|
|
||||||
local scaled = raw * GetPerfectPixel()
|
local scaled = raw * GetPerfectPixel()
|
||||||
pfUI.borders = { raw, scaled }
|
pfUI.borders = { raw, scaled }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user