-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTopBox.qml
More file actions
49 lines (42 loc) · 925 Bytes
/
TopBox.qml
File metadata and controls
49 lines (42 loc) · 925 Bytes
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
import QtQuick 2.15
import QtQuick.Layouts 1.15
Rectangle {
id: id
Layout.fillWidth: true
height: parent.height
radius: 15
border.color: "#737373"
border.width: 2
y: -150
ColumnLayout {
anchors.fill: parent
anchors.margins: 16
spacing: 8
CustomText {
innerText: title
}
Item {
Layout.fillHeight: true
}
CustomText {
innerText: content
pointSize: 28
}
}
gradient: Gradient {
stops: [
GradientStop {
position: 0
color: "black"
},
GradientStop {
position: 1
color: Qt.rgba(0.149, 0.149, 0.149, 1)
}
]
}
property string id: ""
property string title: ""
property string content: ""
property int animDuration: 800
}