From 6790e6129f26af9497e71c7248a04f36c63c28cd Mon Sep 17 00:00:00 2001 From: Benjamin Date: Wed, 6 Dec 2023 10:54:57 -0700 Subject: [PATCH] Cleaned up table view foreground color --- gamefinder.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gamefinder.py b/gamefinder.py index e1dc775..3750069 100644 --- a/gamefinder.py +++ b/gamefinder.py @@ -331,22 +331,30 @@ def getColorFromHex(self, hex): return(color) def generateRow(self, row, noColor = False): + foreground = self.getColorFromHex("000000") if noColor: color = self.getColorFromHex("ffffff") else: color = self.getColorFromHex("92d050") + itemId = QTableWidgetItem(row[0]) itemId.setBackground(color) + itemId.setForeground(foreground) title = QTableWidgetItem(row[1]) title.setBackground(color) + title.setForeground(foreground) price = QTableWidgetItem(row[2]) price.setBackground(color) + price.setForeground(foreground) currency = QTableWidgetItem(row[3]) currency.setBackground(color) + currency.setForeground(foreground) bestOffer = QTableWidgetItem(row[4]) bestOffer.setBackground(color) + bestOffer.setForeground(foreground) buyItNow = QTableWidgetItem(row[5]) buyItNow.setBackground(color) + buyItNow.setForeground(foreground) if noColor: link = LinkWidget(row[6], "#ffffff", [itemId, title, price, currency, bestOffer, buyItNow], self)