From 27d1bf5a31c8be805e63d6ae87f0defaedbf9a3d Mon Sep 17 00:00:00 2001
From: Gabriel Tofvesson <gabriel@tofvesson.se>
Date: Sat, 26 Oct 2024 00:41:54 +0200
Subject: [PATCH] Fix colors

---
 itemcontroller.lua | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/itemcontroller.lua b/itemcontroller.lua
index 0174655..ba4b53d 100644
--- a/itemcontroller.lua
+++ b/itemcontroller.lua
@@ -374,6 +374,7 @@ local PAGES = {
 
     for i=1,groupEntryListBudget do
       local bgColor = (i % 2 == 0) and colors.lightGray or colors.black
+      local fgColor = (i % 2 == 0) and colors.black or colors.lightGray
       table.insert(
         entries,
         List:new{
@@ -384,12 +385,12 @@ local PAGES = {
             Padding:new{
               id = GroupEntryID.PADDING,
               bgColor = bgColor,
-              element = Text:new{ id = GroupEntryID.NAME, bgColor = bgColor }
+              element = Text:new{ id = GroupEntryID.NAME, bgColor = bgColor, fgColor = fgColor }
             },
             Text:new{
               id = GroupEntryID.COUNT,
               bgColor = bgColor,
-              fgColor = colors.black
+              fgColor = fgColor
             }
           }
         }