From 6a2b157c7d3510b53d7b9bf1462aa7d9f135fc38 Mon Sep 17 00:00:00 2001 From: Erica Z Date: Sun, 27 Oct 2024 12:20:43 +0100 Subject: [PATCH] new play queue style --- src/ui/play_queue_song.blp | 56 ++++++++++++++++++++++---------------- 1 file changed, 33 insertions(+), 23 deletions(-) diff --git a/src/ui/play_queue_song.blp b/src/ui/play_queue_song.blp index 3a22ac6..65591c0 100644 --- a/src/ui/play_queue_song.blp +++ b/src/ui/play_queue_song.blp @@ -37,18 +37,36 @@ template $UiPlayQueueSong: Box { focusable: false; hexpand: true; - Label { - focusable: false; - xalign: 0; - halign: start; - hexpand: true; - ellipsize: end; - max-width-chars: 90; - justify: fill; - margin-start: 9; + Box { + orientation: vertical; - label: bind template.song as <$SubsonicSong>.title; - styles [ "title-label" ] + Label { + focusable: false; + xalign: 0; + halign: start; + hexpand: true; + ellipsize: end; + max-width-chars: 90; + justify: fill; + margin-start: 9; + + label: bind template.song as <$SubsonicSong>.title; + } + + Label { + focusable: false; + xalign: 0; + halign: start; + hexpand: true; + ellipsize: end; + max-width-chars: 90; + justify: fill; + margin-start: 9; + + label: bind template.song as <$SubsonicSong>.artist; + + styles [ "dim-label" ] + } } } @@ -57,18 +75,6 @@ template $UiPlayQueueSong: Box { focusable: false; hexpand: true; - Label { - focusable: false; - xalign: 0; - halign: start; - hexpand: true; - ellipsize: end; - max-width-chars: 90; - justify: fill; - margin-start: 9; - - label: bind template.song as <$SubsonicSong>.artist; - } } Box album_duration_box { @@ -76,6 +82,7 @@ template $UiPlayQueueSong: Box { hexpand: true; spacing: 6; + /* Label { visible: bind template.show_album; focusable: false; @@ -88,6 +95,7 @@ template $UiPlayQueueSong: Box { label: bind template.song as <$SubsonicSong>.album; } + */ Label { focusable: false; @@ -135,10 +143,12 @@ template $UiPlayQueueSong: Box { } } +/* SizeGroup { mode: horizontal; widgets [title_box, artist_box, album_duration_box] } +*/ menu song-menu { item ("View song", "song.view")