Replace running status text with app icon overlay

This commit is contained in:
Cameron Gutman
2018-08-05 12:19:54 -07:00
parent 493165f57f
commit 470769e910

View File

@@ -61,19 +61,21 @@ GridView {
}
}
Image {
id: runningIcon
anchors.centerIn: appIcon
visible: model.running
source: "qrc:/res/baseline-play_circle_filled_white-48px.svg"
sourceSize {
width: 75
height: 75
}
}
Text {
id: appNameText
text: {
if (model.running) {
return "<font color=\"green\">Running</font><font color=\"white\"> - </font>" + model.name
}
else {
return model.name
}
}
text: model.name
color: "white"
width: parent.width
height: 125
anchors.top: appIcon.bottom