From c0e258b6e4d5e5948dcfd6e94da074abe6337fa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Fortin=20Tam?= Date: Thu, 17 Aug 2023 00:59:38 -0400 Subject: [PATCH] style: Harmonize the mini calendar's week numbers with GNOME Shell Make the week numbers a bit clearer to look at in the mini calendar, differentiating them from day numbers so it's easier to tell them apart. The style is loosely inspired from GNOME Shell's calendar widget, but retains GNOME Calendar's more compact layout. Closes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/378 Related: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/934 --- src/theme/style-hc.css | 5 +++++ src/theme/style.css | 12 ++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/theme/style-hc.css b/src/theme/style-hc.css index 6b9d37ad..9822bdec 100644 --- a/src/theme/style-hc.css +++ b/src/theme/style-hc.css @@ -3,3 +3,8 @@ .sources-button > button:checked { box-shadow: inset 1px 0 @borders, inset -1px 0 @borders; } +datechooser .weeknum{ + color: @theme_fg_color; + background-color: alpha(@theme_fg_color, 0.05); + border: 1px solid alpha(currentColor, 0.5); +} diff --git a/src/theme/style.css b/src/theme/style.css index b11955f4..b65d3447 100644 --- a/src/theme/style.css +++ b/src/theme/style.css @@ -174,8 +174,16 @@ datechooser navigator button { padding: 0; } -/* day names and week numbers*/ -datechooser .weeknum, +/* week numbers, with a style resembling GNOME Shell's */ +datechooser .weeknum{ + font-size: smaller; + margin: 6px; + border-radius: 3px; + background-color: alpha(@theme_fg_color, 0.1); + color: @insensitive_fg_color; +} + +/* day names */ datechooser .weekday { color: @insensitive_fg_color; font-size: smaller;