summaryrefslogtreecommitdiff
path: root/.config/quickshell/Modules/MusicPopup.qml
diff options
context:
space:
mode:
authorSam Nystrom <sam@samnystrom.dev>2026-01-16 11:04:25 -0500
committerSam Nystrom <sam@samnystrom.dev>2026-01-16 11:06:33 -0500
commit3d300067f6e179e03d1983159b81e1c2cfe2fa8c (patch)
tree46981a14c530b6a1e897300372cefe83e0f491fe /.config/quickshell/Modules/MusicPopup.qml
parentedf72cc5f6f005251ef77d585bdf800891866d8a (diff)
refactor qs bar
Diffstat (limited to '.config/quickshell/Modules/MusicPopup.qml')
-rw-r--r--.config/quickshell/Modules/MusicPopup.qml52
1 files changed, 52 insertions, 0 deletions
diff --git a/.config/quickshell/Modules/MusicPopup.qml b/.config/quickshell/Modules/MusicPopup.qml
new file mode 100644
index 0000000..35a3094
--- /dev/null
+++ b/.config/quickshell/Modules/MusicPopup.qml
@@ -0,0 +1,52 @@
+import Quickshell
+import QtQuick
+import QtQuick.Layouts
+import qs.Services
+
+RowLayout {
+ anchors.fill: parent
+ anchors.topMargin: 32
+ anchors.bottomMargin: 32
+ anchors.leftMargin: 100
+ anchors.rightMargin: 100
+ spacing: 60
+
+ Image {
+ id: cover
+ asynchronous: true
+ source: "file://" + Song.coverPath
+ sourceSize.width: 300
+ sourceSize.height: 300
+ width: 300
+ height: 300
+
+ Connections {
+ target: Song
+
+ function onCoverLoaded() {
+ cover.source = "file://" + Song.coverPath
+ }
+ }
+ }
+
+ ColumnLayout {
+ Text {
+ Layout.alignment: Qt.AlignHCenter
+ color: Flexoki.re
+ text: Song.artist
+ font.pixelSize: root.fontSize
+ }
+ Text {
+ Layout.alignment: Qt.AlignHCenter
+ color: Flexoki.tx
+ text: Song.album
+ font.pixelSize: root.fontSize
+ }
+ Text {
+ Layout.alignment: Qt.AlignHCenter
+ color: Flexoki.tx
+ text: Song.title
+ font.pixelSize: root.fontSize
+ }
+ }
+}