-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBlockScreen.qml
More file actions
34 lines (29 loc) · 807 Bytes
/
BlockScreen.qml
File metadata and controls
34 lines (29 loc) · 807 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
import QtQuick 2.0
import QtQuick.Controls 2.2
import "DefaultTheme.js" as DefTheme
Rectangle {
id: rootItem
color: DefTheme.mainModalBg
anchors.fill: parent
property string message
property int mod : rootItem.width / 8
Image {
id: icon
anchors.bottom: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
source: "img/information.png"
}
Text {
id: messageText
text: message
anchors.top: parent.verticalCenter
anchors.left: parent.left
anchors.right: parent.right
anchors.topMargin: mod
anchors.leftMargin: mod
anchors.rightMargin: mod
font.pixelSize: mod / 2.5
horizontalAlignment: Qt.AlignHCenter
wrapMode: Text.WordWrap
}
}