Skip to content

Commit dea6136

Browse files
committed
fix(calendar): ensure auto-fill background is disabled for CustomCalendar
- This change explicitly sets the auto-fill background property to False, improving the visual consistency of the calendar widget.
1 parent 560955c commit dea6136

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/widgets/yasb/clock.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def __init__(self, parent=None, timezone=None):
2222
self.setVerticalHeaderFormat(QCalendarWidget.VerticalHeaderFormat.NoVerticalHeader)
2323
self.setNavigationBarVisible(False)
2424
self.setCursor(Qt.CursorShape.PointingHandCursor)
25+
self.setAutoFillBackground(False)
2526

2627
format = self.weekdayTextFormat(Qt.DayOfWeek.Monday)
2728
for day in range(Qt.DayOfWeek.Monday.value, Qt.DayOfWeek.Sunday.value + 1):

0 commit comments

Comments
 (0)