Commit 9d471d0d authored by Volker Krause's avatar Volker Krause

Factor out header scale

parent 26357b5e
......@@ -45,13 +45,13 @@ App.TimelineDelegate {
.arg(reservation.reservationFor.busName)
.arg(reservation.reservationFor.busNumber)
color: Kirigami.Theme.complementaryTextColor
font.pointSize: Kirigami.Theme.defaultFont.pointSize * 1.6
font.pointSize: Kirigami.Theme.defaultFont.pointSize * root.headerFontScale
Layout.fillWidth: true
}
QQC2.Label {
text: reservation.reservationFor.departureTimeLocalized
color: Kirigami.Theme.complementaryTextColor
font.pointSize: Kirigami.Theme.defaultFont.pointSize * 1.6
font.pointSize: Kirigami.Theme.defaultFont.pointSize * root.headerFontScale
}
}
}
......
......@@ -41,19 +41,19 @@ App.TimelineDelegate {
anchors.right: parent.right
QQC2.Label {
text: qsTr("✈ %1 %2 %3 -> %4")
text: qsTr("✈ %1 %2 %3 %4")
.arg(reservation.reservationFor.airline.iataCode)
.arg(reservation.reservationFor.flightNumber)
.arg(reservation.reservationFor.departureAirport.iataCode)
.arg(reservation.reservationFor.arrivalAirport.iataCode)
color: Kirigami.Theme.complementaryTextColor
font.pointSize: Kirigami.Theme.defaultFont.pointSize * 1.6
font.pointSize: Kirigami.Theme.defaultFont.pointSize * root.headerFontScale
Layout.fillWidth: true
}
QQC2.Label {
text: reservation.reservationFor.boardingTimeLocalized
color: Kirigami.Theme.complementaryTextColor
font.pointSize: Kirigami.Theme.defaultFont.pointSize * 1.6
font.pointSize: Kirigami.Theme.defaultFont.pointSize * root.headerFontScale
}
}
}
......
......@@ -22,6 +22,7 @@ import org.kde.kirigami 2.0 as Kirigami
import "." as App
App.TimelineDelegate {
id: root
implicitHeight: topLayout.implicitHeight
ColumnLayout {
......@@ -40,10 +41,9 @@ App.TimelineDelegate {
anchors.right: parent.right
QQC2.Label {
text: qsTr("🏨 %1")
.arg(reservation.reservationFor.name)
text: qsTr("🏨 %1").arg(reservation.reservationFor.name)
color: Kirigami.Theme.complementaryTextColor
font.pointSize: Kirigami.Theme.defaultFont.pointSize * 1.6
font.pointSize: Kirigami.Theme.defaultFont.pointSize * root.headerFontScale
Layout.fillWidth: true
}
}
......
......@@ -22,5 +22,7 @@ Item {
property var pass
property string passId
readonly property double headerFontScale: 1.25
signal showBoardingPass(var pass, string passId)
}
......@@ -45,13 +45,13 @@ App.TimelineDelegate {
.arg(reservation.reservationFor.trainName)
.arg(reservation.reservationFor.trainNumber)
color: Kirigami.Theme.complementaryTextColor
font.pointSize: Kirigami.Theme.defaultFont.pointSize * 1.6
font.pointSize: Kirigami.Theme.defaultFont.pointSize * root.headerFontScale
Layout.fillWidth: true
}
QQC2.Label {
text: reservation.reservationFor.departureTimeLocalized
color: Kirigami.Theme.complementaryTextColor
font.pointSize: Kirigami.Theme.defaultFont.pointSize * 1.6
font.pointSize: Kirigami.Theme.defaultFont.pointSize * root.headerFontScale
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment