From 712c893a1566e184082fb5b7bb71b1928b48b57d Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 13 Sep 2023 10:54:58 -0400 Subject: [PATCH] Change foreground color for teal background --- netbox/extras/dashboard/widgets.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/netbox/extras/dashboard/widgets.py b/netbox/extras/dashboard/widgets.py index e05d4d4b1..0b185d432 100644 --- a/netbox/extras/dashboard/widgets.py +++ b/netbox/extras/dashboard/widgets.py @@ -122,11 +122,12 @@ class DashboardWidget: Return the appropriate foreground (text) color for the widget's color. """ if self.color in ( - ButtonColorChoices.WHITE, + ButtonColorChoices.CYAN, ButtonColorChoices.GRAY, ButtonColorChoices.GREY, + ButtonColorChoices.TEAL, + ButtonColorChoices.WHITE, ButtonColorChoices.YELLOW, - ButtonColorChoices.CYAN, ): return ButtonColorChoices.BLACK return ButtonColorChoices.WHITE