Set special color for selected and today.

This commit is contained in:
2026-02-27 14:13:43 +01:00
parent 0a0a602a11
commit 0908275eba

View File

@@ -149,7 +149,10 @@ public class CalendarPanel extends JPanel {
boolean isToday = cellDate.equals(today); boolean isToday = cellDate.equals(today);
boolean isSelected = selectedDates.contains(cellDate); boolean isSelected = selectedDates.contains(cellDate);
if (isSelected) { if (isSelected && isToday) {
g.setColor(new Color(123, 166, 180));
g.fillRect(x, y, cellWidth, cellHeight);
} else if (isSelected) {
g.setColor(new Color(173, 216, 230)); g.setColor(new Color(173, 216, 230));
g.fillRect(x, y, cellWidth, cellHeight); g.fillRect(x, y, cellWidth, cellHeight);
} else if (isToday) { } else if (isToday) {