mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-23 12:30:50 +00:00
api: use same shadow conditions as for backdrop
This commit is contained in:
@@ -866,6 +866,9 @@ end
|
|||||||
-- Creates a pfUI compatible frame as shadow element
|
-- Creates a pfUI compatible frame as shadow element
|
||||||
-- 'f' [frame] the frame which should get a backdrop.
|
-- 'f' [frame] the frame which should get a backdrop.
|
||||||
function pfUI.api.CreateBackdropShadow(f)
|
function pfUI.api.CreateBackdropShadow(f)
|
||||||
|
-- exit if now frame was given
|
||||||
|
if not f then return end
|
||||||
|
|
||||||
if f.backdrop_shadow or pfUI_config.appearance.border.shadow ~= "1" then
|
if f.backdrop_shadow or pfUI_config.appearance.border.shadow ~= "1" then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user