Commit 903a7fe4 authored by Volker Krause's avatar Volker Krause
Browse files

Fix journey summary line logo aspect ratios

parent d8a2c064
......@@ -42,10 +42,8 @@ RowLayout {
delegate: Kirigami.Icon {
source: PublicTransport.journeySectionIcon(modelData)
color: PublicTransport.warnAboutSection(modelData) ? Kirigami.Theme.negativeTextColor : Kirigami.Theme.textColor
width: isMask ? height : implicitWidth
height: Kirigami.Units.iconSizes.small
isMask: modelData.mode != JourneySection.PublicTransport || (!modelData.route.line.hasLogo && !modelData.route.line.hasModeLogo)
Layout.preferredWidth: width
Layout.preferredWidth: Kirigami.Units.iconSizes.small * Util.svgAspectRatio(source)
Layout.preferredHeight: Kirigami.Units.iconSizes.small
}
}
......
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