8import QGroundControl.Controls
16 font.family: ScreenTools.normalFontFamily
21 anchors.top: parent.top
22 anchors.left: parent.left
25 text: qsTr("Qt Platform:")
26 color: qgcPal.textPrimary
27 font.family: ScreenTools.normalFontFamily
31 color: qgcPal.textPrimary
32 font.family: ScreenTools.normalFontFamily
35 text: qsTr("Font Point Size 10")
36 color: qgcPal.textPrimary
38 font.family: ScreenTools.normalFontFamily
41 text: qsTr("Default font width:")
42 color: qgcPal.textPrimary
43 font.family: ScreenTools.normalFontFamily
46 text: _textMeasure.contentWidth
47 color: qgcPal.textPrimary
48 font.family: ScreenTools.normalFontFamily
51 text: qsTr("Font Point Size 10.5")
52 color: qgcPal.textPrimary
54 font.family: ScreenTools.normalFontFamily
57 text: qsTr("Default font height:")
58 color: qgcPal.textPrimary
59 font.family: ScreenTools.normalFontFamily
62 text: _textMeasure.contentHeight
63 color: qgcPal.textPrimary
64 font.family: ScreenTools.normalFontFamily
67 text: qsTr("Font Point Size 11")
68 color: qgcPal.textPrimary
70 font.family: ScreenTools.normalFontFamily
73 text: qsTr("Default font pixel size:")
74 color: qgcPal.textPrimary
75 font.family: ScreenTools.normalFontFamily
78 text: _textMeasure.font.pointSize
79 color: qgcPal.textPrimary
80 font.family: ScreenTools.normalFontFamily
83 text: qsTr("Font Point Size 11.5")
84 color: qgcPal.textPrimary
86 font.family: ScreenTools.normalFontFamily
89 text: qsTr("Default font point size:")
90 color: qgcPal.textPrimary
91 font.family: ScreenTools.normalFontFamily
94 text: _textMeasure.font.pointSize
95 color: qgcPal.textPrimary
96 font.family: ScreenTools.normalFontFamily
99 text: qsTr("Font Point Size 12")
100 color: qgcPal.textPrimary
102 font.family: ScreenTools.normalFontFamily
105 text: qsTr("QML Screen Desktop:")
106 color: qgcPal.textPrimary
107 font.family: ScreenTools.normalFontFamily
110 text: Screen.desktopAvailableWidth + " x " + Screen.desktopAvailableHeight
111 color: qgcPal.textPrimary
112 font.family: ScreenTools.normalFontFamily
115 text: qsTr("Font Point Size 12.5")
116 color: qgcPal.textPrimary
118 font.family: ScreenTools.normalFontFamily
121 text: qsTr("QML Screen Size:")
122 color: qgcPal.textPrimary
123 font.family: ScreenTools.normalFontFamily
126 text: Screen.width + " x " + Screen.height
127 color: qgcPal.textPrimary
128 font.family: ScreenTools.normalFontFamily
131 text: qsTr("Font Point Size 13")
132 color: qgcPal.textPrimary
134 font.family: ScreenTools.normalFontFamily
137 text: qsTr("QML Pixel Density:")
138 color: qgcPal.textPrimary
139 font.family: ScreenTools.normalFontFamily
142 text: Screen.pixelDensity.toFixed(4)
143 color: qgcPal.textPrimary
144 font.family: ScreenTools.normalFontFamily
147 text: qsTr("Font Point Size 13.5")
148 color: qgcPal.textPrimary
150 font.family: ScreenTools.normalFontFamily
153 text: qsTr("QML Pixel Ratio:")
154 color: qgcPal.textPrimary
155 font.family: ScreenTools.normalFontFamily
158 text: Screen.devicePixelRatio
159 color: qgcPal.textPrimary
160 font.family: ScreenTools.normalFontFamily
163 text: qsTr("Font Point Size 14")
164 color: qgcPal.textPrimary
166 font.family: ScreenTools.normalFontFamily
169 text: qsTr("Default Point:")
170 color: qgcPal.textPrimary
171 font.family: ScreenTools.normalFontFamily
174 text: ScreenTools.defaultFontPointSize
175 color: qgcPal.textPrimary
176 font.family: ScreenTools.normalFontFamily
179 text: qsTr("Font Point Size 14.5")
180 color: qgcPal.textPrimary
182 font.family: ScreenTools.normalFontFamily
185 text: qsTr("Computed Font Height:")
186 color: qgcPal.textPrimary
187 font.family: ScreenTools.normalFontFamily
190 text: ScreenTools.defaultFontPixelHeight
191 color: qgcPal.textPrimary
192 font.family: ScreenTools.normalFontFamily
195 text: qsTr("Font Point Size 15")
196 color: qgcPal.textPrimary
198 font.family: ScreenTools.normalFontFamily
201 text: qsTr("Computed Screen Height:")
202 color: qgcPal.textPrimary
203 font.family: ScreenTools.normalFontFamily
206 text: (Screen.height / Screen.pixelDensity * Screen.devicePixelRatio).toFixed(0)
207 color: qgcPal.textPrimary
208 font.family: ScreenTools.normalFontFamily
211 text: qsTr("Font Point Size 15.5")
212 color: qgcPal.textPrimary
214 font.family: ScreenTools.normalFontFamily
217 text: qsTr("Computed Screen Width:")
218 color: qgcPal.textPrimary
219 font.family: ScreenTools.normalFontFamily
222 text: (Screen.width / Screen.pixelDensity * Screen.devicePixelRatio).toFixed(0)
223 color: qgcPal.textPrimary
224 font.family: ScreenTools.normalFontFamily
227 text: qsTr("Font Point Size 16")
228 color: qgcPal.textPrimary
230 font.family: ScreenTools.normalFontFamily
233 text: qsTr("Desktop Available Width:")
234 color: qgcPal.textPrimary
235 font.family: ScreenTools.normalFontFamily
238 text: Screen.desktopAvailableWidth
239 color: qgcPal.textPrimary
240 font.family: ScreenTools.normalFontFamily
243 text: qsTr("Font Point Size 16.5")
244 color: qgcPal.textPrimary
246 font.family: ScreenTools.normalFontFamily
249 text: qsTr("Desktop Available Height:")
250 color: qgcPal.textPrimary
251 font.family: ScreenTools.normalFontFamily
254 text: Screen.desktopAvailableHeight
255 color: qgcPal.textPrimary
256 font.family: ScreenTools.normalFontFamily
259 text: qsTr("Font Point Size 17")
260 color: qgcPal.textPrimary
262 font.family: ScreenTools.normalFontFamily
270 color: qgcPal.textPrimary
271 anchors.right: parent.right
272 anchors.bottom: parent.bottom
276 anchors.centerIn: parent
281 Component.onCompleted: {
282 for (var i = 10; i < 360; i = i + 60) {
283 var colorValue = Qt.hsla(i/360, 0.85, 0.5, 1);
284 seriesColors.push(colorValue)
285 colorListModel.append({"colorValue": colorValue.toString()})
289 property var seriesColors: []
298 anchors.right: square.left
299 anchors.bottom: parent.bottom
302 model: colorListModel
303 delegate: Rectangle {
310 font.pointSize: _textMeasure.font.pointSize * 0.75
311 anchors.centerIn: parent