From 4e4b3d60b19b7ced64c3779eef579915f0e387f5 Mon Sep 17 00:00:00 2001 From: tr1x_em Date: Tue, 12 Aug 2025 09:16:19 +0530 Subject: [PATCH] Fix Calander --- modules/widget.py | 2 ++ styles/widgets.css | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/modules/widget.py b/modules/widget.py index 01e1903..21ce287 100644 --- a/modules/widget.py +++ b/modules/widget.py @@ -467,6 +467,8 @@ class Calendar(Box): """Calendar widget displaying current month.""" def __init__(self, **kwargs): + # Set Sunday as first day of week + calendar.setfirstweekday(6) # 6 = Sunday super().__init__( name="calendar-widget", h_expand=True, diff --git a/styles/widgets.css b/styles/widgets.css index 5d1a05b..5f6682b 100644 --- a/styles/widgets.css +++ b/styles/widgets.css @@ -48,18 +48,18 @@ } #calendar-widget { - margin: 12px; + margin: 5px 10px 0px 10px; } #calendar-month { font-size: 16px; font-weight: 600; color: #1a87e6; - margin-bottom: 8px; + margin-bottom: 6px; } #calendar-days-header { - margin-bottom: 6px; + margin-bottom: 4px; } #calendar-day-header { @@ -67,7 +67,7 @@ font-weight: 600; color: #ffffff; min-width: 18px; - min-height: 16px; + min-height: 10px; } #calendar-day-header-weekend { @@ -75,7 +75,7 @@ font-weight: 600; color: #8e8d93; min-width: 18px; - min-height: 16px; + min-height: 10px; } #calendar-day { @@ -84,7 +84,7 @@ font-weight: 500; color: #ffffff; min-width: 18px; - min-height: 16px; + min-height: 10px; } #calendar-day-weekend {