DatePicker: improve contrast for the current day

This commit is contained in:
selsta committed 2026-09-07 01:37:17 +02:00
1 parent 7691273c63
commit 6bf2165a89
1 file changed
+1 -1
+1 -1
View File
@@ -326,6 +326,7 @@ Item {
if(dayArea.pressed || styleData.visibleMonth) return true;
return false;
}
font.underline: styleData.date.toDateString() === (new Date()).toDateString()
text: styleData.date.getDate()
themeTransition: false
color: {
@@ -343,7 +344,6 @@ Item {
}
}
if(!styleData.valid) return "transparent"
if(styleData.date.toDateString() === (new Date()).toDateString()) return "#FFFF00"
if(!styleData.visibleMonth) return MoneroComponents.Style.lightGreyFontColor
if(dayArea.pressed) return MoneroComponents.Style.defaultFontColor
return MoneroComponents.Style.defaultFontColor