Skip to content

Commit

Permalink
Calendar: add hover effect on day
Browse files Browse the repository at this point in the history
  • Loading branch information
syl committed Jun 6, 2022
1 parent 74982a8 commit 5a9032e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion atomic_defi_design/Dex/Components/DefaultCalendar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,11 @@ Calendar
dayDelegate: DefaultRectangle
{
anchors.fill: parent
color: styleData.date !== undefined && styleData.selected ? selectedDateColor : "transparent"
color: styleData.date !== undefined && styleData.selected ? selectedDateColor : styleData.hovered ? hoveredDateColor : "transparent"

readonly property bool addExtraMargin: control.frameVisible && styleData.selected
readonly property color sameMonthDateTextColor: Dex.CurrentTheme.foregroundColor
readonly property color hoveredDateColor: Dex.CurrentTheme.buttonColorHovered
readonly property color selectedDateColor: Dex.CurrentTheme.buttonColorPressed
readonly property color selectedDateTextColor: Dex.CurrentTheme.foregroundColor
readonly property color differentMonthDateTextColor: Dex.CurrentTheme.foregroundColor3
Expand Down

0 comments on commit 5a9032e

Please sign in to comment.