mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 22:35:27 +00:00
QML UI: re-indent DiveList code
No actual changes besides whitespace. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e49301ea21
commit
684354ab6e
1 changed files with 24 additions and 24 deletions
|
@ -162,32 +162,32 @@ Kirigami.ScrollablePage {
|
|||
rightMargin: Kirigami.Units.gridUnit * -2
|
||||
}
|
||||
color: subsurfaceTheme.darkBackgroundColor
|
||||
Kirigami.Label {
|
||||
id: sectionText
|
||||
text: {
|
||||
// if the tripMeta (which we get as "section") ends in ::-- we know
|
||||
// that there's no trip -- otherwise strip the meta information before
|
||||
// the :: and show the trip location
|
||||
var shownText
|
||||
var endsWithDoubleDash = /::--$/;
|
||||
if (endsWithDoubleDash.test(section) || section === "--") {
|
||||
shownText = ""
|
||||
} else {
|
||||
shownText = section.replace(/.*::/, "")
|
||||
Kirigami.Label {
|
||||
id: sectionText
|
||||
text: {
|
||||
// if the tripMeta (which we get as "section") ends in ::-- we know
|
||||
// that there's no trip -- otherwise strip the meta information before
|
||||
// the :: and show the trip location
|
||||
var shownText
|
||||
var endsWithDoubleDash = /::--$/;
|
||||
if (endsWithDoubleDash.test(section) || section === "--") {
|
||||
shownText = ""
|
||||
} else {
|
||||
shownText = section.replace(/.*::/, "")
|
||||
}
|
||||
shownText
|
||||
}
|
||||
shownText
|
||||
visible: text !== ""
|
||||
font.weight: Font.Bold
|
||||
anchors {
|
||||
top: parent.top
|
||||
left: parent.left
|
||||
topMargin: Math.max(2, Kirigami.Units.gridUnit / 2)
|
||||
leftMargin: Kirigami.Units.gridUnit / 2
|
||||
right: parent.right
|
||||
}
|
||||
color: textColor
|
||||
}
|
||||
visible: text !== ""
|
||||
font.weight: Font.Bold
|
||||
anchors {
|
||||
top: parent.top
|
||||
left: parent.left
|
||||
topMargin: Math.max(2, Kirigami.Units.gridUnit / 2)
|
||||
leftMargin: Kirigami.Units.gridUnit / 2
|
||||
right: parent.right
|
||||
}
|
||||
color: textColor
|
||||
}
|
||||
}
|
||||
Rectangle {
|
||||
height: Math.max(2, Kirigami.Units.gridUnit / 12) // we want a thicker line
|
||||
|
|
Loading…
Add table
Reference in a new issue