added theme state locks

This commit is contained in:
Michael Freno
2025-12-04 20:33:04 -05:00
parent 2554d76a84
commit 61500f9131
4 changed files with 150 additions and 2 deletions

View File

@@ -309,9 +309,15 @@ function Element.new(props)
disabled = props.disabled or false,
active = props.active or false,
disableHighlight = props.disableHighlight,
themeStateLock = props.themeStateLock or false,
scaleCorners = props.scaleCorners,
scalingAlgorithm = props.scalingAlgorithm,
})
-- Validate themeStateLock after ThemeManager is created
if props.themeStateLock and props.themeComponent then
self._themeManager:validateThemeStateLock()
end
-- Expose theme properties for backward compatibility
self.theme = self._themeManager.theme