Fix status icon centering on PC view. Fixes #10
This commit is contained in:
parent
470769e910
commit
2140c94cd1
1 changed files with 11 additions and 7 deletions
|
|
@ -88,7 +88,7 @@ GridView {
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
id: pcIcon
|
id: pcIcon
|
||||||
anchors.horizontalCenter: parent.horizontalCenter;
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
source: {
|
source: {
|
||||||
model.addPc ? "qrc:/res/ic_add_to_queue_white_48px.svg" : "qrc:/res/ic_tv_white_48px.svg"
|
model.addPc ? "qrc:/res/ic_add_to_queue_white_48px.svg" : "qrc:/res/ic_tv_white_48px.svg"
|
||||||
}
|
}
|
||||||
|
|
@ -101,20 +101,24 @@ GridView {
|
||||||
Image {
|
Image {
|
||||||
// TODO: Tooltip
|
// TODO: Tooltip
|
||||||
id: stateIcon
|
id: stateIcon
|
||||||
anchors.centerIn: pcIcon // TODO: Center within screen
|
anchors.horizontalCenter: pcIcon.horizontalCenter
|
||||||
|
anchors.verticalCenter: pcIcon.verticalCenter
|
||||||
|
anchors.verticalCenterOffset: -10
|
||||||
visible: !model.addPc && !model.statusUnknown && (!model.online || !model.paired)
|
visible: !model.addPc && !model.statusUnknown && (!model.online || !model.paired)
|
||||||
source: !model.online ? "qrc:/res/baseline-warning-24px.svg" : "qrc:/res/baseline-lock-24px.svg"
|
source: !model.online ? "qrc:/res/baseline-warning-24px.svg" : "qrc:/res/baseline-lock-24px.svg"
|
||||||
sourceSize {
|
sourceSize {
|
||||||
width: 50
|
width: 75
|
||||||
height: 50
|
height: 75
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BusyIndicator {
|
BusyIndicator {
|
||||||
id: statusUnknownSpinner
|
id: statusUnknownSpinner
|
||||||
anchors.centerIn: pcIcon
|
anchors.horizontalCenter: pcIcon.horizontalCenter
|
||||||
width: 50
|
anchors.verticalCenter: pcIcon.verticalCenter
|
||||||
height: 50
|
anchors.verticalCenterOffset: -10
|
||||||
|
width: 75
|
||||||
|
height: 75
|
||||||
visible: !model.addPc && model.statusUnknown
|
visible: !model.addPc && model.statusUnknown
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue