mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 03:21:29 +00:00
QML UI: DiveList: add blue bar on the left to trip heading
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
684354ab6e
commit
a6a9eaa998
1 changed files with 10 additions and 1 deletions
|
@ -153,11 +153,20 @@ Kirigami.ScrollablePage {
|
||||||
Item {
|
Item {
|
||||||
width: page.width - Kirigami.Units.gridUnit
|
width: page.width - Kirigami.Units.gridUnit
|
||||||
height: childrenRect.height + Kirigami.Units.smallSpacing * 2 + Math.max(2, Kirigami.Units.gridUnit / 2)
|
height: childrenRect.height + Kirigami.Units.smallSpacing * 2 + Math.max(2, Kirigami.Units.gridUnit / 2)
|
||||||
|
Rectangle {
|
||||||
|
id: leftBar
|
||||||
|
height: headingBackground.height
|
||||||
|
width: Kirigami.Units.gridUnit * 1
|
||||||
|
color: subsurfaceTheme.accentColor
|
||||||
|
anchors {
|
||||||
|
left: parent.left
|
||||||
|
}
|
||||||
|
}
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: headingBackground
|
id: headingBackground
|
||||||
height: Kirigami.Units.gridUnit * 3
|
height: Kirigami.Units.gridUnit * 3
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
left: leftBar.right
|
||||||
right: parent.right
|
right: parent.right
|
||||||
rightMargin: Kirigami.Units.gridUnit * -2
|
rightMargin: Kirigami.Units.gridUnit * -2
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue