Commit aca4eb16 authored by Dimitris Kardarakos's avatar Dimitris Kardarakos

Improve spacing and positioning of time picker

parent e47dde57
Pipeline #1195 failed with stage
in 3 minutes and 55 seconds
......@@ -175,14 +175,15 @@ Kirigami.Page {
property int minutes: todoData ? todoData.dtstart.toLocaleTimeString(Qt.locale(), "mm") : 0
property bool pm: (todoData && todoData.dtstart.toLocaleTimeString(Qt.locale(), "hh") > 12) ? true : false
ColumnLayout {
rightPadding: 0
leftPadding: 0
TimePicker {
id: timePicker
hours: timePickerSheet.hours
minutes: timePickerSheet.minutes
pm: timePickerSheet.pm
}
contentItem: TimePicker {
id: timePicker
hours: timePickerSheet.hours
minutes: timePickerSheet.minutes
pm: timePickerSheet.pm
}
footer: RowLayout {
......
......@@ -30,13 +30,11 @@ ColumnLayout {
property int minutes
property bool pm
implicitWidth: clock.width
implicitHeight: clock.height
Item {
id: clock
width: Kirigami.Units.gridUnit * 14
height: Kirigami.Units.gridUnit * 14
width: Kirigami.Units.gridUnit * 18
height: width
//Hours clock
PathView {
......@@ -50,10 +48,10 @@ ColumnLayout {
model: 12
path: Path {
PathAngleArc {
centerX: Kirigami.Units.gridUnit * 7
centerY: Kirigami.Units.gridUnit * 7
radiusX: Kirigami.Units.gridUnit * 3
radiusY: Kirigami.Units.gridUnit * 3
centerX: Kirigami.Units.gridUnit * 9
centerY: centerX
radiusX: Kirigami.Units.gridUnit * 4
radiusY: radiusX
startAngle: -90
sweepAngle: 360
}
......@@ -74,10 +72,10 @@ ColumnLayout {
path: Path {
PathAngleArc {
centerX: Kirigami.Units.gridUnit * 7
centerY: Kirigami.Units.gridUnit * 7
radiusX: Kirigami.Units.gridUnit * 6
radiusY: Kirigami.Units.gridUnit * 6
centerX: Kirigami.Units.gridUnit * 9
centerY: centerX
radiusX: Kirigami.Units.gridUnit * 7
radiusY: radiusX
startAngle: -90
sweepAngle: 360
}
......@@ -104,6 +102,5 @@ ColumnLayout {
onClicked: root.pm = checked
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment