Files
dotfiles/quickshell/PlayerPopup.qml
2025-07-23 19:17:11 +01:00

49 lines
1.2 KiB
QML

import QtQml
import QtQuick
import Quickshell
import QtQuick.Layouts
PopupWindow {
property PlayerControllerV2 playerController: null;
id: audioPopup
anchor {
item: root
}
anchor.rect.x: root.width / 2 - width / 2
anchor.rect.y: root.height * 1.2
height: 350
width: 300
Rectangle {
anchors.fill: parent
color: "#919191"
ColumnLayout {
anchors.centerIn: parent
Item {
width: coverImg.width
height: coverImg.height
Image {
id: coverImg
anchors.fill: parent
source: Player.activePlayer.trackArtUrl;
width: 275
height: 275
fillMode: Image.PreserveAspectCrop
}
}
Text {
text: Player.activePlayer.trackTitle
color: "white"
font.pointSize: 10.75
}
Text {
text: Player.activePlayer.trackArtist
color: "white"
font.pointSize: 10.75
}
}
}
}