summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoramane <61896496+soramanew@users.noreply.github.com>2025-08-23 19:49:41 +1000
committerSoramane <61896496+soramanew@users.noreply.github.com>2025-08-23 19:49:41 +1000
commitb10c9a8006c5b4e6e5e35ef7bfe8b78c38625201 (patch)
tree98a13896d8b966789b89b4de913f0cdc3b2f9a7a
parentnix: fix qt hook (diff)
downloadcaelestia-shell-b10c9a8006c5b4e6e5e35ef7bfe8b78c38625201.tar.gz
caelestia-shell-b10c9a8006c5b4e6e5e35ef7bfe8b78c38625201.tar.bz2
caelestia-shell-b10c9a8006c5b4e6e5e35ef7bfe8b78c38625201.zip
dashboard: better pfp picker
-rw-r--r--modules/dashboard/dash/User.qml22
1 files changed, 12 insertions, 10 deletions
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
}
}
}