From 0b7be8ec5e63bf5ff0c19258458e774e90f7cfa6 Mon Sep 17 00:00:00 2001
From: Dirk Hohndel <dirk@hohndel.org>
Date: Sun, 28 Feb 2016 17:04:52 +0100
Subject: QML UI: small adjustment to DiveDetailsView

This reduces the margin to use more of the available space and also makes
the first column slightly wider so the word "Cylinder" isn't broken on a
Nexus 6p.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
---
 qt-mobile/qml/DiveDetailsView.qml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'qt-mobile')

diff --git a/qt-mobile/qml/DiveDetailsView.qml b/qt-mobile/qml/DiveDetailsView.qml
index f7746ad74..2cb2726b1 100644
--- a/qt-mobile/qml/DiveDetailsView.qml
+++ b/qt-mobile/qml/DiveDetailsView.qml
@@ -13,8 +13,8 @@ Item {
 	id: detailsView
 	property int labelWidth: MobileComponents.Units.gridUnit * 10
 	property real gridWidth: subsurfaceTheme.columnWidth - 2 * MobileComponents.Units.gridUnit
-	property real col1Width: gridWidth * 0.20
-	property real col2Width: gridWidth * 0.40
+	property real col1Width: gridWidth * 0.23
+	property real col2Width: gridWidth * 0.37
 	property real col3Width: gridWidth * 0.20
 	property real col4Width: gridWidth * 0.20
 
@@ -37,7 +37,7 @@ Item {
 		    top: parent.top
 		    left: parent.left
 		    right: parent.right
-		    margins: MobileComponents.Units.gridUnit
+		    margins: Math.round(MobileComponents.Units.gridUnit / 2)
 		}
 		columns: 4
 		rowSpacing: MobileComponents.Units.smallSpacing * 2
@@ -142,7 +142,7 @@ Item {
 		    top: mainLayout.bottom
 		    left: parent.left
 		    right: parent.right
-		    margins: MobileComponents.Units.gridUnit
+		    margins: Math.round(MobileComponents.Units.gridUnit / 2)
 		}
 		columns: 4
 		rowSpacing: MobileComponents.Units.smallSpacing * 2
-- 
cgit v1.2.3-70-g09d2