Add animated icon to ImportingKeys box
This commit is contained in:
parent
4ff3ebe255
commit
21b44bcf66
4
TODO.md
4
TODO.md
|
@ -1,5 +1,3 @@
|
||||||
rename hinterfacebox
|
|
||||||
translated arg for avatar upload and login
|
|
||||||
- Refactoring
|
- Refactoring
|
||||||
- Banners
|
- Banners
|
||||||
|
|
||||||
|
@ -33,7 +31,6 @@ translated arg for avatar upload and login
|
||||||
- Terrible performance using `QT_QPA_PLATFORM=wayland-egl`, must use `xcb`
|
- Terrible performance using `QT_QPA_PLATFORM=wayland-egl`, must use `xcb`
|
||||||
|
|
||||||
- UI
|
- UI
|
||||||
- HProgressBar
|
|
||||||
- Choose a better default easing type for animations
|
- Choose a better default easing type for animations
|
||||||
- Make invite icon blink if there's no one but ourself in the room,
|
- Make invite icon blink if there's no one but ourself in the room,
|
||||||
but never do it again once the user hovered it long enough to show tooltip
|
but never do it again once the user hovered it long enough to show tooltip
|
||||||
|
@ -122,6 +119,7 @@ translated arg for avatar upload and login
|
||||||
- Links preview
|
- Links preview
|
||||||
|
|
||||||
- Client improvements
|
- Client improvements
|
||||||
|
- `translated` arg for avatar upload and login errors
|
||||||
- Check if username exists on login screen
|
- Check if username exists on login screen
|
||||||
- `pyotherside.atexit()`
|
- `pyotherside.atexit()`
|
||||||
- Logout previous session if adding an account that's already connected
|
- Logout previous session if adding an account that's already connected
|
||||||
|
|
|
@ -5,13 +5,34 @@ import "../../Base"
|
||||||
import "../../utils.js" as Utils
|
import "../../utils.js" as Utils
|
||||||
|
|
||||||
HColumnLayout {
|
HColumnLayout {
|
||||||
|
readonly property int progress: accountInfo.importing_key
|
||||||
|
|
||||||
|
onProgressChanged: iconAnimation.restart()
|
||||||
|
|
||||||
|
|
||||||
HRowLayout {
|
HRowLayout {
|
||||||
|
HIcon {
|
||||||
|
id: icon
|
||||||
|
svgName: "import-keys"
|
||||||
|
|
||||||
|
Layout.margins: currentSpacing
|
||||||
|
|
||||||
|
SequentialAnimation {
|
||||||
|
id: iconAnimation
|
||||||
|
|
||||||
|
HNumberAnimation { target: icon; property: "opacity"; to: 0.6 }
|
||||||
|
HNumberAnimation { target: icon; property: "opacity"; to: 1 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
HLabel {
|
HLabel {
|
||||||
text: qsTr("Importing decryption keys...")
|
text: qsTr("Importing decryption keys...")
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.margins: currentSpacing
|
Layout.margins: currentSpacing
|
||||||
|
Layout.leftMargin: 0
|
||||||
|
Layout.rightMargin: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
HLabel {
|
HLabel {
|
||||||
|
@ -19,14 +40,13 @@ HColumnLayout {
|
||||||
.arg(Math.ceil(progressBar.value)).arg(progressBar.to)
|
.arg(Math.ceil(progressBar.value)).arg(progressBar.to)
|
||||||
|
|
||||||
Layout.margins: currentSpacing
|
Layout.margins: currentSpacing
|
||||||
Layout.leftMargin: 0
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ProgressBar {
|
ProgressBar {
|
||||||
id: progressBar
|
id: progressBar
|
||||||
from: 0
|
from: 0
|
||||||
value: accountInfo.importing_key
|
value: progress
|
||||||
to: accountInfo.total_keys_to_import
|
to: accountInfo.total_keys_to_import
|
||||||
|
|
||||||
Behavior on value { HNumberAnimation { factor: 5 } }
|
Behavior on value { HNumberAnimation { factor: 5 } }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user