xurfer/xurfer/runtime/lovr/lib/iui/widgets/panel-background.lua

15 lines
382 B
Lua
Raw Normal View History

2026-06-06 12:35:31 +02:00
local currentPath = (...):match('(.-)[^%./]+$')
local parentPath = currentPath:match('(.-)[^%./]+%.$')
--- @class IUILib
local iui = require(parentPath .. "iui")
--- @param color? IUIColor
function iui.panelBackground(color)
color = color or iui.colors.sysGray50
local x, y, w, h = iui.layout.getPanelBounds()
color:set()
iui.draw.panelBackground(x, y, w, h)
end