dashboard: better pfp picker
This commit is contained in:
parent
0a796015b5
commit
b10c9a8006
1 changed files with 12 additions and 10 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue