Fix Calander

This commit is contained in:
tr1x_em committed 2025-08-12 09:16:19 +05:30
1 parent ad6eded2cb
commit 4e4b3d60b1
2 files changed
+8 -6

No files matched your search

+2
View File
@@ -467,6 +467,8 @@ class Calendar(Box):
"""Calendar widget displaying current month.""" """Calendar widget displaying current month."""
def __init__(self, **kwargs): def __init__(self, **kwargs):
# Set Sunday as first day of week
calendar.setfirstweekday(6) # 6 = Sunday
super().__init__( super().__init__(
name="calendar-widget", name="calendar-widget",
h_expand=True, h_expand=True,
+6 -6
View File
@@ -48,18 +48,18 @@
} }
#calendar-widget { #calendar-widget {
margin: 12px; margin: 5px 10px 0px 10px;
} }
#calendar-month { #calendar-month {
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
color: #1a87e6; color: #1a87e6;
margin-bottom: 8px; margin-bottom: 6px;
} }
#calendar-days-header { #calendar-days-header {
margin-bottom: 6px; margin-bottom: 4px;
} }
#calendar-day-header { #calendar-day-header {
@@ -67,7 +67,7 @@
font-weight: 600; font-weight: 600;
color: #ffffff; color: #ffffff;
min-width: 18px; min-width: 18px;
min-height: 16px; min-height: 10px;
} }
#calendar-day-header-weekend { #calendar-day-header-weekend {
@@ -75,7 +75,7 @@
font-weight: 600; font-weight: 600;
color: #8e8d93; color: #8e8d93;
min-width: 18px; min-width: 18px;
min-height: 16px; min-height: 10px;
} }
#calendar-day { #calendar-day {
@@ -84,7 +84,7 @@
font-weight: 500; font-weight: 500;
color: #ffffff; color: #ffffff;
min-width: 18px; min-width: 18px;
min-height: 16px; min-height: 10px;
} }
#calendar-day-weekend { #calendar-day-weekend {