Update List

This commit is contained in:
Sabine Lim
2023-05-16 03:05:21 +10:00
parent ff6df82fca
commit afbaa04f11
2 changed files with 21 additions and 1 deletions

View File

@@ -151,10 +151,26 @@ return function(name, basalt)
return self
end,
setSelectionBG = function(self, bgCol)
return self:setSelectionColor(bgCol, nil, selectionColorActive)
end,
setSelectionFG = function(self, fgCol)
return self:setSelectionColor(nil, fgCol, selectionColorActive)
end,
getSelectionColor = function(self)
return itemSelectedBG, itemSelectedFG
end,
getSelectionBG = function(self)
return itemSelectedBG
end,
getSelectionFG = function(self)
return itemSelectedFG
end,
isSelectionColorActive = function(self)
return selectionColorActive
end,
@@ -166,6 +182,10 @@ return function(name, basalt)
return self
end,
getScrollable = function(self)
return scrollable
end,
scrollHandler = function(self, dir, x, y)
if(base.scrollHandler(self, dir, x, y))then
if(scrollable)then

View File

@@ -721,7 +721,7 @@ return {
setValuesByXMLData = function(self, data, renderContext)
base.setValuesByXMLData(self, data, renderContext)
self:updateSpecifiedValuesByXMLData(data, {
"align",
"textAlign",
"offset",
"selectionBg",
"selectionFg",