blob: 153aaf4ccdc0ae691df5118a8fa8774056254f07 (
plain)
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
|
import QtQuick 2.4
import QtQuick.Layouts 1.1
import Ubuntu.Components 1.3
import Ubuntu.Components.ListItems 1.3
Page {
id: root
title: i18n.tr("Settings")
property var pebble: null
ColumnLayout {
anchors.fill: parent
anchors.margins: units.gu(1)
spacing: units.gu(1)
Label {
Layout.fillWidth: true
text: i18n.tr("Distance Units")
font.bold: true
}
RowLayout {
Layout.fillWidth: true
CheckBox {
id: metricUnitsCheckbox
checked: !root.pebble.imperialUnits
onClicked: {
checked = true
root.pebble.imperialUnits = false;
imperialUnitsCheckBox.checked = false;
}
}
Label {
text: i18n.tr("Metric")
Layout.fillWidth: true
}
CheckBox {
id: imperialUnitsCheckBox
checked: root.pebble.imperialUnits
onClicked: {
checked = true
root.pebble.imperialUnits = true;
metricUnitsCheckbox.checked = false;
}
}
Label {
text: i18n.tr("Imperial")
Layout.fillWidth: true
}
}
ThinDivider {}
Label {
text: i18n.tr("Calendar")
Layout.fillWidth: true
font.bold: true
}
RowLayout {
Layout.fillWidth: true
Label {
text: i18n.tr("Sync calendar to timeline")
Layout.fillWidth: true
}
Switch {
checked: root.pebble.calendarSyncEnabled
onClicked: {
root.pebble.calendarSyncEnabled = checked;
}
}
}
ThinDivider {}
Item {
Layout.fillWidth: true
Layout.fillHeight: true
}
}
}
|