Set item group list colors

This commit is contained in:
Gabriel Tofvesson 2024-10-12 23:38:36 +02:00
parent 97b29a30a5
commit c51a46135a

View File

@ -478,22 +478,23 @@ local PAGES = {
}
for i=1,groupEntryListBudget do
local bgColor = (i % 2 == 0) and colors.gray or colors.black
table.insert(
entries,
Prop.attach(
List:new{
id = tostring(i),
bgColor = (i % 2 == 0) and colors.gray or colors.black,
bgColor = bgColor,
[Orientation:getId()] = Orientation.HORIZONTAL,
[Children:getId()] = {
Padding:new{
id = GroupEntryID.PADDING,
bgColor = (i % 2 == 0) and colors.gray or colors.black,
element = Text:new{ id = GroupEntryID.NAME }
bgColor = bgColor,
element = Text:new{ id = GroupEntryID.NAME, bgColor = bgColor }
},
Text:new{
id = GroupEntryID.COUNT,
bgColor = (i % 2 == 0) and colors.gray or colors.black
bgColor = bgColor
}
}
},