-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFooter.qml
165 lines (119 loc) · 4.74 KB
/
Footer.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
import QtQuick 2.15
import QtGraphicalEffects 1.12
import "Components/Generic"
import "Components/Footer"
Item {
property alias footerLeftText: footerLeftCounter.text
Item {
id: footerRoot
height: parent.height * 0.8
width: parent.width * 0.95
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
Rectangle {
id: footerLeft
height: parent.height
anchors {
left: parent.left
leftMargin: parent.width * 0.01
}
color: themeData.colorTheme[theme].dark
Component.onCompleted: {
if (themeSettings.gamesListCounter) {
var gamesCount = api.allGames.count
var string = gamesCount + "/" + gamesCount
width = (utils.getTextWidth(string, footerLeftCounter.font, footerLeftCounter.fontSize) + height) * 1.10
}
else {
width = 0
visible = false
}
}
FooterCounter {
id: footerLeftCounter
anchors.fill: parent
anchors.leftMargin: parent.width * 0.02
text: ""
}
}
Rectangle {
id: footerMiddle
height: parent.height
//width: parent.width * 0.20
width: footerMiddleClock.contentWidth * 1.5
anchors.right: parent.right
anchors.leftMargin: parent.width * 0.01
color: themeData.colorTheme[themeSettings.theme].dark
FooterTime {
id: footerMiddleClock
anchors {
fill: parent
leftMargin: (parent.width - contentWidth) / 2
}
}
}
Rectangle {
id: footerRight
height: parent.height
anchors.left: footerLeft.right
anchors.leftMargin: parent.width * 0.01
anchors.right: footerMiddle.left
anchors.rightMargin: parent.width * 0.01
color: themeData.colorTheme[themeSettings.theme].dark
clip: true
RoundButton {
id: footerRightAcceptCircle
height: parent.height * 0.6
width: height
anchors {
verticalCenter: parent.verticalCenter
left: parent.left
leftMargin: parent.width * 0.03
}
buttonColor: themeData.colorTheme[theme].primary
textColor: themeData.colorTheme[theme].background
text: "A"
}
Text {
id: footerRightAcceptText
anchors.left: footerRightAcceptCircle.right
anchors.leftMargin: parent.width * 0.01
anchors.verticalCenter: parent.verticalCenter
font.family: "HackRegular"
font.pixelSize: footerRightAcceptCircle.height * 0.8
color: themeData.colorTheme[theme].primary
text: "Accept"
}
Rectangle {
id: footerRightFavoriteCircle
height: parent.height * 0.6
width: height
anchors.verticalCenter: parent.verticalCenter
anchors.left: footerRightAcceptText.right
anchors.leftMargin: parent.width * 0.03
color: themeData.colorTheme[themeSettings.theme].primary
radius: 180
Text {
id: footerRightFavoriteCircleLetter
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
font.family: "HackRegular"
font.pixelSize: parent.height * 0.8
font.bold: true
color: themeData.colorTheme[theme].background
text: "Y"
}
}
Text {
id: footerRightFavoriteText
anchors.left: footerRightFavoriteCircle.right
anchors.leftMargin: parent.width * 0.01
anchors.verticalCenter: parent.verticalCenter
font.family: "HackRegular"
font.pixelSize: footerRightFavoriteCircle.height * 0.8
color: themeData.colorTheme[theme].primary
text: "Favorite"
}
}
}
}