Changeset View
Changeset View
Standalone View
Standalone View
applets/digital-clock/package/contents/ui/configAppearance.qml
Show All 23 Lines | |||||
24 | import QtQuick.Controls 2.3 as QtControls | 24 | import QtQuick.Controls 2.3 as QtControls | ||
25 | import QtQuick.Layouts 1.0 as QtLayouts | 25 | import QtQuick.Layouts 1.0 as QtLayouts | ||
26 | import org.kde.plasma.calendar 2.0 as PlasmaCalendar | 26 | import org.kde.plasma.calendar 2.0 as PlasmaCalendar | ||
27 | import org.kde.kquickcontrolsaddons 2.0 | 27 | import org.kde.kquickcontrolsaddons 2.0 | ||
28 | import org.kde.kirigami 2.5 as Kirigami | 28 | import org.kde.kirigami 2.5 as Kirigami | ||
29 | 29 | | |||
30 | QtLayouts.ColumnLayout { | 30 | QtLayouts.ColumnLayout { | ||
31 | id: appearancePage | 31 | id: appearancePage | ||
32 | width: childrenRect.width | | |||
33 | height: childrenRect.height | | |||
34 | 32 | | |||
35 | signal configurationChanged | 33 | signal configurationChanged | ||
36 | 34 | | |||
37 | property string cfg_fontFamily | 35 | property string cfg_fontFamily | ||
38 | property alias cfg_boldText: boldCheckBox.checked | 36 | property alias cfg_boldText: boldCheckBox.checked | ||
39 | property string cfg_timeFormat: "" | 37 | property string cfg_timeFormat: "" | ||
40 | property alias cfg_italicText: italicCheckBox.checked | 38 | property alias cfg_italicText: italicCheckBox.checked | ||
41 | 39 | | |||
▲ Show 20 Lines • Show All 182 Lines • ▼ Show 20 Line(s) | 220 | if (current) { | |||
224 | appearancePage.configurationChanged() | 222 | appearancePage.configurationChanged() | ||
225 | } | 223 | } | ||
226 | } | 224 | } | ||
227 | } | 225 | } | ||
228 | 226 | | |||
229 | QtControls.Button { | 227 | QtControls.Button { | ||
230 | id: boldCheckBox | 228 | id: boldCheckBox | ||
231 | QtControls.ToolTip { | 229 | QtControls.ToolTip { | ||
230 | id: boldTooltip | ||||
232 | text: i18n("Bold text") | 231 | text: i18n("Bold text") | ||
233 | } | 232 | } | ||
234 | icon.name: "format-text-bold" | 233 | icon.name: "format-text-bold" | ||
235 | checkable: true | 234 | checkable: true | ||
236 | Accessible.name: tooltip | 235 | Accessible.name: boldTooltip.text | ||
237 | } | 236 | } | ||
238 | 237 | | |||
239 | QtControls.Button { | 238 | QtControls.Button { | ||
240 | id: italicCheckBox | 239 | id: italicCheckBox | ||
241 | QtControls.ToolTip { | 240 | QtControls.ToolTip { | ||
241 | id: italicTooltip | ||||
242 | text: i18n("Italic text") | 242 | text: i18n("Italic text") | ||
243 | } | 243 | } | ||
244 | icon.name: "format-text-italic" | 244 | icon.name: "format-text-italic" | ||
245 | checkable: true | 245 | checkable: true | ||
246 | Accessible.name: tooltip | 246 | Accessible.name: italicTooltip.text | ||
247 | } | 247 | } | ||
248 | } | 248 | } | ||
249 | } | 249 | } | ||
250 | Item { | 250 | Item { | ||
251 | QtLayouts.Layout.fillHeight: true | 251 | QtLayouts.Layout.fillHeight: true | ||
252 | } | 252 | } | ||
253 | 253 | | |||
254 | Component.onCompleted: { | 254 | Component.onCompleted: { | ||
255 | if (plasmoid.configuration.displayTimezoneAsCode) { | 255 | if (plasmoid.configuration.displayTimezoneAsCode) { | ||
256 | timezoneCodeRadio.checked = true; | 256 | timezoneCodeRadio.checked = true; | ||
257 | } else { | 257 | } else { | ||
258 | timezoneCityRadio.checked = true; | 258 | timezoneCityRadio.checked = true; | ||
259 | } | 259 | } | ||
260 | } | 260 | } | ||
261 | } | 261 | } |