quickshell: media card — title/artist right of art, controls+volume below
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
af35c81514
commit
c901b9b56d
1 changed files with 31 additions and 28 deletions
|
|
@ -2424,16 +2424,15 @@ in
|
|||
anchors.margins: 8
|
||||
spacing: 8
|
||||
|
||||
// Album art + transport controls share
|
||||
// the top row, so the art can be large.
|
||||
Item {
|
||||
// Album art with title + artist to its
|
||||
// right; controls and volume below.
|
||||
Row {
|
||||
width: parent.width
|
||||
height: 128
|
||||
spacing: 12
|
||||
|
||||
Rectangle {
|
||||
width: 128; height: 128
|
||||
radius: Theme.radiusSmall
|
||||
anchors.left: parent.left
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
color: Theme.base02
|
||||
clip: true
|
||||
|
|
@ -2452,9 +2451,34 @@ in
|
|||
}
|
||||
}
|
||||
|
||||
Row {
|
||||
anchors.right: parent.right
|
||||
Column {
|
||||
width: parent.width - 128 - 12
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
spacing: 2
|
||||
SText {
|
||||
width: parent.width
|
||||
text: mediaCard.modelData.trackTitle
|
||||
color: Theme.base05
|
||||
font.pixelSize: 13
|
||||
font.weight: Font.Medium
|
||||
elide: Text.ElideRight
|
||||
}
|
||||
SText {
|
||||
width: parent.width
|
||||
text: mediaCard.modelData.trackArtist
|
||||
color: Theme.base04
|
||||
font.pixelSize: 11
|
||||
elide: Text.ElideRight
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Transport controls, centered below.
|
||||
Item {
|
||||
width: parent.width
|
||||
height: 36
|
||||
Row {
|
||||
anchors.centerIn: parent
|
||||
spacing: 4
|
||||
Repeater {
|
||||
model: [
|
||||
|
|
@ -2484,27 +2508,6 @@ in
|
|||
}
|
||||
}
|
||||
|
||||
// Title, then artist, stacked below.
|
||||
Column {
|
||||
width: parent.width
|
||||
spacing: 2
|
||||
SText {
|
||||
width: parent.width
|
||||
text: mediaCard.modelData.trackTitle
|
||||
color: Theme.base05
|
||||
font.pixelSize: 13
|
||||
font.weight: Font.Medium
|
||||
elide: Text.ElideRight
|
||||
}
|
||||
SText {
|
||||
width: parent.width
|
||||
text: mediaCard.modelData.trackArtist
|
||||
color: Theme.base04
|
||||
font.pixelSize: 11
|
||||
elide: Text.ElideRight
|
||||
}
|
||||
}
|
||||
|
||||
// Per-source volume — same per-app path
|
||||
// as the volume widget. Shown when the
|
||||
// player's Pipewire stream is matched.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue