Commit 840a10e9 authored by Don Gagne's avatar Don Gagne

Fix Message Indicator display

parent 91c556cf
...@@ -95,13 +95,13 @@ Row { ...@@ -95,13 +95,13 @@ Row {
id: messages id: messages
width: mainWindow.tbCellHeight width: mainWindow.tbCellHeight
height: mainWindow.tbCellHeight height: mainWindow.tbCellHeight
visible: activeVehicle ? activeVehicle.messageCount : false visible: activeVehicle && activeVehicle.messageCount
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
Item { Item {
id: criticalMessage id: criticalMessage
anchors.fill: parent anchors.fill: parent
visible: activeVehicle ? (activeVehicle.messageCount > 0 && isMessageImportant) : false visible: activeVehicle && activeVehicle.messageCount > 0 && isMessageImportant
Image { Image {
source: "/qmlimages/Yield.svg" source: "/qmlimages/Yield.svg"
...@@ -137,6 +137,7 @@ Row { ...@@ -137,6 +137,7 @@ Row {
id: messageIcon id: messageIcon
source: "/qmlimages/Megaphone.svg" source: "/qmlimages/Megaphone.svg"
height: mainWindow.tbCellHeight * 0.5 height: mainWindow.tbCellHeight * 0.5
width: height
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
color: getMessageColor() color: getMessageColor()
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
......
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