Replace running status text with app icon overlay
This commit is contained in:
parent
493165f57f
commit
470769e910
1 changed files with 12 additions and 10 deletions
|
|
@ -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 {
|
Text {
|
||||||
id: appNameText
|
id: appNameText
|
||||||
text: {
|
text: model.name
|
||||||
if (model.running) {
|
|
||||||
return "<font color=\"green\">Running</font><font color=\"white\"> - </font>" + model.name
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return model.name
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
color: "white"
|
color: "white"
|
||||||
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: 125
|
height: 125
|
||||||
anchors.top: appIcon.bottom
|
anchors.top: appIcon.bottom
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue