summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-02-09 20:56:14 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-02-10 08:02:56 -0800
commit57024d188ca74de294393c4b4f2fee2c241752d2 (patch)
tree22d3d33029b2c75307f0e5023eadaf69f7437f7c /mobile-widgets
parent67933e68ddca460653f69355306fffd865abc3ec (diff)
downloadsubsurface-57024d188ca74de294393c4b4f2fee2c241752d2.tar.gz
mobile/summary: more UI fine tuning
Creating more space for the header column and a little visual separation for the different sections. The commit is much smaller than it looks - try 'git show -w'. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/DiveSummary.qml31
1 files changed, 19 insertions, 12 deletions
diff --git a/mobile-widgets/qml/DiveSummary.qml b/mobile-widgets/qml/DiveSummary.qml
index 8c390c8a2..bf206cc3e 100644
--- a/mobile-widgets/qml/DiveSummary.qml
+++ b/mobile-widgets/qml/DiveSummary.qml
@@ -110,13 +110,13 @@ Kirigami.ScrollablePage {
Row {
height: headerLabel.height + Kirigami.Units.largeSpacing
Rectangle {
- width: Kirigami.Units.gridUnit * 2
+ width: Kirigami.Units.gridUnit
height: parent.height
color: "transparent"
}
Rectangle {
color: index & 1 ? subsurfaceTheme.backgroundColor : subsurfaceTheme.lightPrimaryColor
- width: headerColumnWidth
+ width: headerColumnWidth + Kirigami.Units.gridUnit
height: headerLabel.height + Kirigami.Units.largeSpacing
Label {
id: headerLabel
@@ -152,16 +152,23 @@ Kirigami.ScrollablePage {
Component {
id: sectionDelegate
- Rectangle {
- width: headerColumnWidth * 3 - Kirigami.Units.gridUnit * 2
- height: sectionLabel.height + Kirigami.Units.largeSpacing
- Label {
- id: sectionLabel
- anchors.verticalCenter: parent.verticalCenter
- leftPadding: Kirigami.Units.largeSpacing
- color: subsurfaceTheme.textColor
- text: section
- font.bold: true
+ Column {
+ Rectangle {
+ width: headerColumnWidth * 3 - Kirigami.Units.gridUnit * 2
+ height: Kirigami.Units.largeSpacing
+ color: subsurfaceTheme.backgroundColor
+ }
+ Rectangle {
+ width: headerColumnWidth * 3 - Kirigami.Units.gridUnit * 2
+ height: sectionLabel.height + Kirigami.Units.largeSpacing
+ Label {
+ id: sectionLabel
+ anchors.verticalCenter: parent.verticalCenter
+ leftPadding: Kirigami.Units.largeSpacing
+ color: subsurfaceTheme.textColor
+ text: section
+ font.bold: true
+ }
}
}
}