summaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-28 17:04:52 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-28 17:18:56 +0100
commit0b7be8ec5e63bf5ff0c19258458e774e90f7cfa6 (patch)
tree42cea210bfaae4574640b6269acd2d749219fd88 /qt-mobile
parent2bf6f4e45ddf943d1091b67bf4c03dc43d2032db (diff)
downloadsubsurface-0b7be8ec5e63bf5ff0c19258458e774e90f7cfa6.tar.gz
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>
Diffstat (limited to 'qt-mobile')
-rw-r--r--qt-mobile/qml/DiveDetailsView.qml8
1 files changed, 4 insertions, 4 deletions
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