mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 20:23:25 +00:00
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>
This commit is contained in:
parent
751286e4e7
commit
40a65a2e6b
1 changed files with 4 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue