diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2018-09-30 14:30:03 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-09-30 08:16:52 -0700 |
commit | 40a65a2e6b4a68cac5ea6cf1a254021b637bad35 (patch) | |
tree | 1a49c7860b55f53d2b31f285f3b4046ddba8be9e /mobile-widgets | |
parent | 751286e4e733272b13c406b3854e7f3cd11d0371 (diff) | |
download | subsurface-40a65a2e6b4a68cac5ea6cf1a254021b637bad35.tar.gz |
QML UI: center delete from divelist button
A small cosmetic change. The delete from divelist button was "glued"
to the top of the line. Not nice, so just center it vertically, and
make the button a tiny bit smaller, so that it fits nicely on the line.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index 4896eadd5..1acc3970c 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -196,7 +196,7 @@ Kirigami.ScrollablePage { } Rectangle { visible: deleteButtonVisible - height: diveListEntry.height - Kirigami.Units.smallSpacing + height: diveListEntry.height - 2 * Kirigami.Units.smallSpacing width: height - 3 * Kirigami.Units.smallSpacing color: subsurfaceTheme.contrastAccentColor antialiasing: true @@ -204,6 +204,8 @@ Kirigami.ScrollablePage { anchors { left: diveListEntry.right right: parent.right + verticalCenter: diveListEntry.verticalCenter + verticalCenterOffset: Kirigami.Units.smallSpacing / 2 } Kirigami.Icon { anchors { @@ -211,7 +213,7 @@ Kirigami.ScrollablePage { verticalCenter: parent.verticalCenter } source: ":/icons/trash-empty" - width: Kirigami.Units.iconSizes.smallMedium + width: parent.height height: width } MouseArea { |