mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
QML UI: turn DiveList heading into label
This way it will render in the same font as the location of a dive. This will look like crap until the next commit adds a rectangle with color around it, but this way it's much easier to see the individual changes. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
3d707dca9a
commit
3d8f61fe6c
1 changed files with 2 additions and 3 deletions
|
@ -153,8 +153,7 @@ Kirigami.ScrollablePage {
|
|||
Item {
|
||||
width: page.width - Kirigami.Units.gridUnit
|
||||
height: childrenRect.height + Kirigami.Units.smallSpacing * 2 + Math.max(2, Kirigami.Units.gridUnit / 2)
|
||||
|
||||
Kirigami.Heading {
|
||||
Kirigami.Label {
|
||||
id: sectionText
|
||||
text: {
|
||||
// if the tripMeta (which we get as "section") ends in ::-- we know
|
||||
|
@ -170,6 +169,7 @@ Kirigami.ScrollablePage {
|
|||
shownText
|
||||
}
|
||||
visible: text !== ""
|
||||
font.weight: Font.Bold
|
||||
anchors {
|
||||
top: parent.top
|
||||
left: parent.left
|
||||
|
@ -178,7 +178,6 @@ Kirigami.ScrollablePage {
|
|||
right: parent.right
|
||||
}
|
||||
color: textColor
|
||||
level: 3
|
||||
}
|
||||
Rectangle {
|
||||
height: Math.max(2, Kirigami.Units.gridUnit / 12) // we want a thicker line
|
||||
|
|
Loading…
Reference in a new issue