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 {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
cursorShape: Qt.PointingHandCursor
|
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
|
||||||
onClicked: {
|
|
||||||
root.visibilities.launcher = false;
|
|
||||||
root.state.facePicker.open();
|
|
||||||
}
|
|
||||||
|
|
||||||
StyledRect {
|
StyledRect {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
color: Qt.alpha(Colours.palette.m3primary, 0.1)
|
color: Qt.alpha(Colours.palette.m3scrim, 0.5)
|
||||||
opacity: parent.containsMouse ? 1 : 0
|
opacity: parent.containsMouse ? 1 : 0
|
||||||
|
|
||||||
Behavior on opacity {
|
Behavior on opacity {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
duration: Appearance.anim.durations.normal
|
duration: Appearance.anim.durations.expressiveFastSpatial
|
||||||
easing.type: Easing.BezierSpline
|
easing.type: Easing.BezierSpline
|
||||||
easing.bezierCurve: Appearance.anim.curves.standard
|
easing.bezierCurve: Appearance.anim.curves.standard
|
||||||
}
|
}
|
||||||
|
|
@ -76,6 +69,15 @@ Row {
|
||||||
scale: parent.containsMouse ? 1 : 0.5
|
scale: parent.containsMouse ? 1 : 0.5
|
||||||
opacity: parent.containsMouse ? 1 : 0
|
opacity: parent.containsMouse ? 1 : 0
|
||||||
|
|
||||||
|
StateLayer {
|
||||||
|
color: Colours.palette.m3onPrimary
|
||||||
|
|
||||||
|
function onClicked(): void {
|
||||||
|
root.visibilities.launcher = false;
|
||||||
|
root.state.facePicker.open();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
MaterialIcon {
|
MaterialIcon {
|
||||||
id: selectIcon
|
id: selectIcon
|
||||||
|
|
||||||
|
|
@ -99,7 +101,7 @@ Row {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
duration: Appearance.anim.durations.expressiveFastSpatial
|
duration: Appearance.anim.durations.expressiveFastSpatial
|
||||||
easing.type: Easing.BezierSpline
|
easing.type: Easing.BezierSpline
|
||||||
easing.bezierCurve: Appearance.anim.curves.expressiveFastSpatial
|
easing.bezierCurve: Appearance.anim.curves.standard
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue