blob: 35a30948494cddd28116b3935880beb4e4a38156 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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
}
}
}
|