feat: use shape loading indicator for lock
This commit is contained in:
parent
d741ca28d7
commit
7c6f6682cf
1 changed files with 15 additions and 4 deletions
|
|
@ -47,8 +47,8 @@ StyledRect {
|
||||||
spacing: Tokens.spacing.medium
|
spacing: Tokens.spacing.medium
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
implicitWidth: implicitHeight
|
Layout.fillHeight: true
|
||||||
implicitHeight: fprintIcon.implicitHeight + Tokens.padding.small
|
implicitWidth: height
|
||||||
|
|
||||||
MaterialIcon {
|
MaterialIcon {
|
||||||
id: fprintIcon
|
id: fprintIcon
|
||||||
|
|
@ -72,9 +72,20 @@ StyledRect {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CircularIndicator {
|
Loader {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
running: root.lock.pam.passwd.active
|
anchors.margins: Tokens.padding.small
|
||||||
|
|
||||||
|
active: opacity > 0
|
||||||
|
opacity: root.lock.pam.passwd.active ? 1 : 0
|
||||||
|
|
||||||
|
sourceComponent: LoadingIndicator {}
|
||||||
|
|
||||||
|
Behavior on opacity {
|
||||||
|
Anim {
|
||||||
|
type: Anim.DefaultEffects
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue