style: nella vista calendario, modificato con un colore neutro le giornate consuntivate a 0 ore.

This commit is contained in:
Gabriele Cimaschi committed 2026-09-30 22:52:22 +02:00
1 parent abb72d53c9
commit 2ca95e062a
1 file changed
+26 -1
+26 -1
View File
@@ -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) {