From b10c9a8006c5b4e6e5e35ef7bfe8b78c38625201 Mon Sep 17 00:00:00 2001 From: Soramane <61896496+soramanew@users.noreply.github.com> Date: Sat, 23 Aug 2025 19:49:41 +1000 Subject: dashboard: better pfp picker --- modules/dashboard/dash/User.qml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'modules/dashboard/dash') diff --git a/modules/dashboard/dash/User.qml b/modules/dashboard/dash/User.qml index ffdc72a..acb5645 100644 --- a/modules/dashboard/dash/User.qml +++ b/modules/dashboard/dash/User.qml @@ -41,24 +41,17 @@ Row { MouseArea { anchors.fill: parent - - cursorShape: Qt.PointingHandCursor hoverEnabled: true - onClicked: { - root.visibilities.launcher = false; - root.state.facePicker.open(); - } - StyledRect { anchors.fill: parent - color: Qt.alpha(Colours.palette.m3primary, 0.1) + color: Qt.alpha(Colours.palette.m3scrim, 0.5) opacity: parent.containsMouse ? 1 : 0 Behavior on opacity { NumberAnimation { - duration: Appearance.anim.durations.normal + duration: Appearance.anim.durations.expressiveFastSpatial easing.type: Easing.BezierSpline easing.bezierCurve: Appearance.anim.curves.standard } @@ -76,6 +69,15 @@ Row { scale: parent.containsMouse ? 1 : 0.5 opacity: parent.containsMouse ? 1 : 0 + StateLayer { + color: Colours.palette.m3onPrimary + + function onClicked(): void { + root.visibilities.launcher = false; + root.state.facePicker.open(); + } + } + MaterialIcon { id: selectIcon @@ -99,7 +101,7 @@ Row { NumberAnimation { duration: Appearance.anim.durations.expressiveFastSpatial easing.type: Easing.BezierSpline - easing.bezierCurve: Appearance.anim.curves.expressiveFastSpatial + easing.bezierCurve: Appearance.anim.curves.standard } } } -- cgit v1.2.3-freya