47 lines
1.2 KiB
QML
47 lines
1.2 KiB
QML
import QtQml
|
|
import QtQuick
|
|
import Quickshell
|
|
import QtQuick.Layouts
|
|
|
|
PopupWindow {
|
|
property PlayerControllerV2 player: PlayerControllerV2;
|
|
|
|
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
|
|
}
|
|
}
|
|
}
|
|
}
|