aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-20 10:05:45 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-20 10:05:45 -0700
commit157e14e11db6aaaa97e4c7dd41f0a14743097db3 (patch)
treeddee20105874d8a54bb6e8c5680878e76f787f38 /mobile-widgets/qml
parent712d1e97f37600858ed2534ae097cb3d9b060e9b (diff)
downloadsubsurface-157e14e11db6aaaa97e4c7dd41f0a14743097db3.tar.gz
QML UI: DiveList: some fine tuning of sizes and spacing
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/DiveList.qml11
1 files changed, 6 insertions, 5 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml
index 1b5eaaf42..7829e0aec 100644
--- a/mobile-widgets/qml/DiveList.qml
+++ b/mobile-widgets/qml/DiveList.qml
@@ -18,6 +18,7 @@ Kirigami.ScrollablePage {
property int credentialStatus: manager.credentialStatus
property int numDives: diveListView.count
property color textColor: subsurfaceTheme.diveListTextColor
+ property int horizontalPadding: Kirigami.Units.gridUnit / 2 - Kirigami.Units.smallSpacing + 1
Component {
id: diveDelegate
@@ -32,7 +33,6 @@ Kirigami.ScrollablePage {
height: diveListEntry.height + Kirigami.Units.smallSpacing
property real detailsOpacity : 0
- property int horizontalPadding: Kirigami.Units.gridUnit / 2 - Kirigami.Units.smallSpacing + 1
// When clicked, the mode changes to details view
onClicked: {
@@ -74,7 +74,7 @@ Kirigami.ScrollablePage {
color: textColor
anchors {
left: parent.left
- leftMargin: horizontalPadding
+ leftMargin: horizontalPadding * 2
top: parent.top
right: parent.right
}
@@ -159,17 +159,18 @@ Kirigami.ScrollablePage {
height: childrenRect.height - Kirigami.Units.smallSpacing
Rectangle {
id: leftBar
- height: section == "" ? 0 : headingBackground.height
width: Kirigami.Units.gridUnit * 1
color: subsurfaceTheme.accentColor
visible: section != ""
anchors {
left: parent.left
+ top: headingBackground.top
+ bottom: headingBackground.bottom
}
}
Rectangle {
id: headingBackground
- height: section == "" ? 0 : Kirigami.Units.gridUnit * 3
+ height: section == "" ? 0 : Kirigami.Units.gridUnit * 2.5
anchors {
left: leftBar.right
right: parent.right
@@ -198,7 +199,7 @@ Kirigami.ScrollablePage {
top: parent.top
left: parent.left
topMargin: Math.max(2, Kirigami.Units.gridUnit / 2)
- leftMargin: Kirigami.Units.gridUnit / 2
+ leftMargin: horizontalPadding
right: parent.right
}
color: textColor