blob: 9593a2e587e892d14e3357f38d171a74faad60dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
import "root:/widgets"
import "root:/config"
import QtQuick
Loader {
id: root
required property bool empty
active: false
opacity: 0
scale: 0
asynchronous: true
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
sourceComponent: Item {
implicitWidth: childrenRect.width
implicitHeight: icon.height
MaterialIcon {
id: icon
text: "manage_search"
color: Appearance.colours.m3outline
font.pointSize: Appearance.font.size.extraLarge
anchors.verticalCenter: parent.verticalCenter
}
StyledText {
anchors.left: icon.right
anchors.leftMargin: Appearance.spacing.small
anchors.verticalCenter: icon.verticalCenter
text: qsTr("No matching apps found")
color: Appearance.colours.m3outline
font.pointSize: Appearance.font.size.larger
font.weight: 500
}
}
states: State {
name: "visible"
when: root.empty
PropertyChanges {
root.active: true
root.opacity: 1
root.scale: 1
}
}
transitions: Transition {
NumberAnimation {
properties: "opacity,scale"
duration: Appearance.anim.durations.large
easing.type: Easing.BezierSpline
easing.bezierCurve: Appearance.anim.curves.standard
}
}
}
|