-
Notifications
You must be signed in to change notification settings - Fork 5
/
UsageFrame.qml
76 lines (71 loc) · 1.86 KB
/
UsageFrame.qml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import QtQuick 2.7
import QtGraphicalEffects 1.0
import SddmComponents 2.0
import QtQuick.Controls 2.0
Item {
id: frame
Item {
anchors.fill: parent
Item {
id: layered
opacity: 0.8
layer.enabled: true
anchors {
centerIn: parent
fill: parent
}
Rectangle {
id: rec1
width: parent.width / 2
height: parent.height - 35
anchors.centerIn: parent
color: "#f0f0f0"
radius: 2
}
DropShadow {
id: drop
anchors.fill: rec1
source: rec1
horizontalOffset: 0
verticalOffset: 3
radius: 10
samples: 21
color: "#55000000"
transparentBorder: true
}
}
}
Item {
anchors.fill: parent
Text {
id: aupTitle
anchors {
top: parent.top
topMargin: 50
horizontalCenter: parent.horizontalCenter
}
text: "Acceptable Use Policy"
color: "#000000"
font {
pointSize: 18
bold: true
family: config.font
}
wrapMode: Text.Wrap
}
Text {
id: aupText
width: (parent.width / 2) - 20
anchors {
top: aupTitle.top
topMargin: 50
horizontalCenter: parent.horizontalCenter
}
text: config.aup != null ? config.aup : "No Acceptable Use Policy Defined"
color: "#000000"
font.family: config.font
font.pointSize: 15
wrapMode: Text.Wrap
}
}
}