mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-18 14:40:56 +00:00
Replace running status text with app icon overlay
This commit is contained in:
+12
-10
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user