Updated color properties

Small container fix
This commit is contained in:
Robert Jelic
2025-03-02 22:03:51 +01:00
parent 1e6847fc3a
commit 0af0a62528
14 changed files with 123 additions and 53 deletions

View File

@@ -16,9 +16,9 @@ List.defineProperty(List, "multiSelection", {default = false, type = "boolean"})
---@property offset number 0 Current scroll offset for viewing long lists
List.defineProperty(List, "offset", {default = 0, type = "number", canTriggerRender = true})
---@property selectedBackground color blue Background color for selected items
List.defineProperty(List, "selectedBackground", {default = colors.blue, type = "number"})
List.defineProperty(List, "selectedBackground", {default = colors.blue, type = "color"})
---@property selectedForeground color white Text color for selected items
List.defineProperty(List, "selectedForeground", {default = colors.white, type = "number"})
List.defineProperty(List, "selectedForeground", {default = colors.white, type = "color"})
---@event onSelect {index number, item any} Fired when an item is selected
List.defineEvent(List, "mouse_click")