From cd4b2d0e0f0ed4c9172a0d3d2adb1a61c820286f Mon Sep 17 00:00:00 2001
From: Garrett Bates <gbates@passcal.nmt.edu>
Date: Wed, 2 Jun 2021 15:53:27 -0600
Subject: [PATCH] Fixed minor graphical bug in selected dates in calendar which
 made them difficult to read

---
 sohstationviewer/view/ui/calendarwidget.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sohstationviewer/view/ui/calendarwidget.py b/sohstationviewer/view/ui/calendarwidget.py
index bb9e265d5..46fd58f8d 100644
--- a/sohstationviewer/view/ui/calendarwidget.py
+++ b/sohstationviewer/view/ui/calendarwidget.py
@@ -47,7 +47,7 @@ class CalendarWidget(QtWidgets.QCalendarWidget):
         painter.save()
 
         if self.showDayOfYear():
-            color = QtGui.QColor('red')
+            color = QtGui.QColor('red') if date != self.selectedDate() else QtGui.QColor('white')
             font = painter.font()
             font.setPointSize(font.pointSize() * 0.9)
             painter.setFont(font)
-- 
GitLab