Change foreground color for teal background

This commit is contained in:
Jeremy Stretch 2023-09-13 10:54:58 -04:00
parent 478bb2b7dd
commit 712c893a15

View File

@ -122,11 +122,12 @@ class DashboardWidget:
Return the appropriate foreground (text) color for the widget's color. Return the appropriate foreground (text) color for the widget's color.
""" """
if self.color in ( if self.color in (
ButtonColorChoices.WHITE, ButtonColorChoices.CYAN,
ButtonColorChoices.GRAY, ButtonColorChoices.GRAY,
ButtonColorChoices.GREY, ButtonColorChoices.GREY,
ButtonColorChoices.TEAL,
ButtonColorChoices.WHITE,
ButtonColorChoices.YELLOW, ButtonColorChoices.YELLOW,
ButtonColorChoices.CYAN,
): ):
return ButtonColorChoices.BLACK return ButtonColorChoices.BLACK
return ButtonColorChoices.WHITE return ButtonColorChoices.WHITE