From 3d300067f6e179e03d1983159b81e1c2cfe2fa8c Mon Sep 17 00:00:00 2001 From: Sam Nystrom Date: Fri, 16 Jan 2026 11:04:25 -0500 Subject: refactor qs bar --- .config/quickshell/Modules/MusicPopup.qml | 52 +++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .config/quickshell/Modules/MusicPopup.qml (limited to '.config/quickshell/Modules/MusicPopup.qml') 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 + } + } +} -- cgit v1.2.3