From f5ad43323cbae4e59cb4641c14f34745c0c75ae4 Mon Sep 17 00:00:00 2001 From: Bendt Date: Fri, 19 Dec 2025 15:56:01 -0500 Subject: [PATCH] Improve mail and calendar UI: tighter checkbox layout and current time styling --- src/calendar/widgets/WeekGrid.py | 4 +++- src/mail/email_viewer.tcss | 6 +++--- src/mail/widgets/EnvelopeListItem.py | 7 +------ 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/calendar/widgets/WeekGrid.py b/src/calendar/widgets/WeekGrid.py index 68a9502..8d8b128 100644 --- a/src/calendar/widgets/WeekGrid.py +++ b/src/calendar/widgets/WeekGrid.py @@ -374,7 +374,9 @@ class WeekGridBody(ScrollView): # Style time label - highlight current time, dim outside work hours if is_current_time_row: error_color = self._get_theme_color("error") - time_style = Style(color=error_color, bold=True) + # Add subtle background to current time row for better visibility + surface_color = self._get_theme_color("surface") + time_style = Style(color=error_color, bold=True, bgcolor=surface_color) elif ( row_index < self._work_day_start * rows_per_hour or row_index >= self._work_day_end * rows_per_hour diff --git a/src/mail/email_viewer.tcss b/src/mail/email_viewer.tcss index a735d2a..2dcb91c 100644 --- a/src/mail/email_viewer.tcss +++ b/src/mail/email_viewer.tcss @@ -123,7 +123,7 @@ EnvelopeListItem .status-icon.unread { } EnvelopeListItem .checkbox { - width: 2; + width: 1; padding: 0; } @@ -139,12 +139,12 @@ EnvelopeListItem .message-datetime { EnvelopeListItem .email-subject { width: 1fr; - padding: 0 4; + padding: 0 3; } EnvelopeListItem .email-preview { width: 1fr; - padding: 0 4; + padding: 0 3; color: $text-muted; } diff --git a/src/mail/widgets/EnvelopeListItem.py b/src/mail/widgets/EnvelopeListItem.py index d10591a..b128f56 100644 --- a/src/mail/widgets/EnvelopeListItem.py +++ b/src/mail/widgets/EnvelopeListItem.py @@ -48,12 +48,7 @@ class EnvelopeListItem(Static): } EnvelopeListItem .checkbox { - width: 2; - padding: 0; - } - - EnvelopeListItem .checkbox { - width: 2; + width: 1; padding: 0; }