Skip to content

Commit

Permalink
drop max speed, show color instead, and use bigger font
Browse files Browse the repository at this point in the history
  • Loading branch information
janbar committed Oct 1, 2024
1 parent d9b45a1 commit 8797f46
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions gui/controls2_515/components/NavigatorInfo.qml
Original file line number Diff line number Diff line change
Expand Up @@ -194,16 +194,10 @@ Item {
id: speed
anchors.verticalCenter: parent.verticalCenter
text: Converter.readableSpeed(navigator.currentSpeed > 0 ? navigator.currentSpeed : 0.0)
color: styleMap.popover.foregroundColor
color: (navigator.maximumSpeed > 0 && navigator.maximumSpeed < navigator.currentSpeed
? "red" : styleMap.popover.foregroundColor)
font.pixelSize: units.fs("x-large")
}
Label {
id: maxspeed
anchors.verticalCenter: parent.verticalCenter
text: navigator.maximumSpeed > 0 ? Converter.readableSpeed(navigator.maximumSpeed) : ""
color: styleMap.popover.highlightedColor
font.pixelSize: units.fs("medium")
}
MapIcon {
anchors.verticalCenter: parent.verticalCenter
source: {
Expand All @@ -226,7 +220,7 @@ Item {
anchors.verticalCenter: parent.verticalCenter
text: navigator.arrivalEstimate + " ~ " + Converter.panelDistance(navigator.remainingDistance)
color: styleMap.popover.foregroundColor
font.pixelSize: units.fs("medium")
font.pixelSize: units.fs("large")
}
}
}
Expand Down

0 comments on commit 8797f46

Please sign in to comment.