Change volume icon position

This commit is contained in:
cutefishd 2021-03-23 15:36:06 +08:00
parent e91e56e11a
commit 8d494f7799

View file

@ -38,6 +38,17 @@ StandardItem {
rowSpacing: isHorizontal ? 0 : root.largeSpacing + root.smallSpacing
flow: isHorizontal ? Grid.LeftToRight : Grid.TopToBottom
Image {
id: volumeIcon
visible: volume.isValid && status === Image.Ready
source: "qrc:/svg/" + (Meui.Theme.darkMode ? "dark/" : "light/") + volume.iconName + ".svg"
width: root.trayItemSize
height: width
sourceSize: Qt.size(width, height)
asynchronous: true
Layout.alignment: Qt.AlignCenter
}
Image {
id: wirelessIcon
width: root.trayItemSize
@ -63,17 +74,6 @@ StandardItem {
Layout.alignment: Qt.AlignCenter
}
Image {
id: volumeIcon
visible: volume.isValid && status === Image.Ready
source: "qrc:/svg/" + (Meui.Theme.darkMode ? "dark/" : "light/") + volume.iconName + ".svg"
width: root.trayItemSize
height: width
sourceSize: Qt.size(width, height)
asynchronous: true
Layout.alignment: Qt.AlignCenter
}
Label {
id: timeLabel
Layout.alignment: Qt.AlignCenter