-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathdigital-pop-space.qml
166 lines (150 loc) · 4.62 KB
/
digital-pop-space.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
/*
* Copyright (C) 2022 - Timo Könnecke <github.com/eLtMosen>
* All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 2.1 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.9
import QtGraphicalEffects 1.15
Item {
id: rootitem
Image {
id: background
anchors {
centerIn: parent
verticalCenter: parent.verticalCenter
}
width: parent.width
height: parent.height
source: "../watchface-img/background-digital-pop-space.svg"
layer.enabled: true
layer.effect: DropShadow {
transparentBorder: true
horizontalOffset: 0
verticalOffset: 0
radius: 30.0
samples: 15
color: "#ffCD0074"
}
}
Text {
id: hour
anchors {
centerIn: parent
verticalCenterOffset: -parent.height * .18
}
font {
pixelSize: parent.height * .19
family: "outrun future"
styleName: "Regular"
letterSpacing: -parent.height * .004
}
renderType: Text.NativeRendering
antialiasing: true
color: "#F50097"
style: Text.Sunken
styleColor: "#000"
text: if (use12H.value) {
wallClock.time.toLocaleString(Qt.locale(), "hh ap").slice(0, 2) +
wallClock.time.toLocaleString(Qt.locale(), " mm")}
else
wallClock.time.toLocaleString(Qt.locale(), "HH mm")
layer.enabled: true
layer.effect: DropShadow {
transparentBorder: true
horizontalOffset: 0
verticalOffset: 0
radius: 24.0
samples: 16
color: "#FFFF5C"
}
}
Text {
id: dateDisplay
anchors {
centerIn: parent
verticalCenterOffset: parent.height * .024
}
font {
pixelSize: parent.height * .061
family: "Baloo Tammudu 2"
styleName: "Light"
letterSpacing: -parent.height * .0034
}
renderType: Text.NativeRendering
antialiasing: true
color: "white"
style: Text.Sunken
styleColor: "#000"
horizontalAlignment: Text.AlignHCenter
text: wallClock.time.toLocaleString(Qt.locale(), "MMMM ").toUpperCase() +
wallClock.time.toLocaleString(Qt.locale(), "<b>dd</b>")
}
Text {
id: dowDisplay
anchors {
centerIn: parent
verticalCenterOffset: parent.height * .07
}
font {
pixelSize: parent.height * .048
family: "Baloo Tammudu 2"
styleName: "Light"
letterSpacing: -parent.height * .0034
}
renderType: Text.NativeRendering
antialiasing: true
color: "white"
style: Text.Sunken
styleColor: "#000"
horizontalAlignment: Text.AlignHCenter
text: wallClock.time.toLocaleString(Qt.locale(), "dddd ").toUpperCase()
}
Text {
id: apDisplay
anchors {
centerIn: parent
verticalCenterOffset: parent.height * .165
}
font {
pixelSize: parent.height * .16
family: "outrun future"
styleName: "Regular"
letterSpacing: -parent.height * .002
}
renderType: Text.NativeRendering
antialiasing: true
color: "#ddffff00"
style: Text.Sunken
styleColor: "#000"
horizontalAlignment: Text.AlignHCenter
text: wallClock.time.toLocaleString(Qt.locale(), "<b>ap</b>")
layer.enabled: true
layer.effect: DropShadow {
transparentBorder: true
horizontalOffset: 0
verticalOffset: 0
radius: 30.0
samples: 15
color: "#ffff19a6"
}
}
Image {
id: backgroundWave
anchors.centerIn: parent
width: parent.width
height: parent.height
source: "../watchface-img/backgroundwave-digital-pop-space.svg"
}
}