From 2ca95e062a0e68913d292bb34b13e1bb4b57ba5a Mon Sep 17 00:00:00 2001 From: Gabriele Cimaschi Date: Wed, 30 Sep 2026 22:52:22 +0200 Subject: [PATCH] style: nella vista calendario, modificato con un colore neutro le giornate consuntivate a 0 ore. --- public/js/views/timeAccounting.js | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/public/js/views/timeAccounting.js b/public/js/views/timeAccounting.js index 98cf3e2..39f5f91 100644 --- a/public/js/views/timeAccounting.js +++ b/public/js/views/timeAccounting.js @@ -333,8 +333,21 @@ const TimeAccountingView = { borderStyle = '1px solid var(--border-subtle)'; textColor = 'var(--accent-primary)'; } + } else if (dayMins === 0) { + // Giorno lavorativo senza consuntivazioni: neutro / bianco + if (isSelected) { + bgStyle = 'var(--accent-primary)'; + borderStyle = '1px solid var(--accent-primary)'; + textColor = '#ffffff'; + badgeBg = 'rgba(255,255,255,0.25)'; + badgeColor = '#ffffff'; + } else if (isToday) { + bgStyle = 'rgba(79, 70, 229, 0.12)'; + borderStyle = '1px solid var(--border-subtle)'; + textColor = 'var(--accent-primary)'; + } } else { - // Working days (configured in WORK_DAYS) + // Working days con consuntivazione (> 0 min) if (isTargetReached) { // Verdino (green) if (isSelected) { @@ -478,6 +491,18 @@ const TimeAccountingView = { bgStyle = 'rgba(79, 70, 229, 0.12)'; textColor = 'var(--accent-primary)'; } + } else if (dayMins === 0) { + // Giorno lavorativo senza ore consuntivate: neutro / non evidenziato in rosso + if (isSelected) { + bgStyle = 'var(--accent-primary)'; + borderStyle = '2px solid var(--accent-primary)'; + textColor = '#ffffff'; + badgeBg = 'rgba(255,255,255,0.25)'; + badgeColor = '#ffffff'; + } else if (isToday) { + bgStyle = 'rgba(79, 70, 229, 0.12)'; + textColor = 'var(--accent-primary)'; + } } else { if (isTargetReached) { if (isSelected) {