From 3eb412d7b237a0e198d299232545c3a5059d7e85 Mon Sep 17 00:00:00 2001 From: Erica Z Date: Tue, 26 Nov 2024 16:14:13 +0100 Subject: [PATCH] single-line-mode for all labels --- resources/album_carousel.blp | 3 +++ resources/play_queue_song.blp | 3 +++ resources/playbar.blp | 5 +++++ 3 files changed, 11 insertions(+) diff --git a/resources/album_carousel.blp b/resources/album_carousel.blp index 151e678..9089e4c 100644 --- a/resources/album_carousel.blp +++ b/resources/album_carousel.blp @@ -15,6 +15,7 @@ template $AudreyUiAlbumCarousel: Adw.Bin { height-request: 42; Label { + single-line-mode: true; label: bind template.title; styles [ @@ -106,6 +107,7 @@ template $AudreyUiAlbumCarousel: Adw.Bin { homogeneous: true; Label { + single-line-mode: true; label: bind template.item as <$AudreyModelAlbum>.name; ellipsize: end; xalign: 0; @@ -117,6 +119,7 @@ template $AudreyUiAlbumCarousel: Adw.Bin { } Label { + single-line-mode: true; label: bind template.item as <$AudreyModelAlbum>.artist; ellipsize: end; xalign: 0; diff --git a/resources/play_queue_song.blp b/resources/play_queue_song.blp index aaf2a43..1c4e71d 100644 --- a/resources/play_queue_song.blp +++ b/resources/play_queue_song.blp @@ -19,6 +19,7 @@ template $AudreyUiPlayQueueSong: Box { } Label { + single-line-mode: true; visible: bind template.current inverted; focusable: false; halign: end; @@ -60,6 +61,7 @@ template $AudreyUiPlayQueueSong: Box { orientation: vertical; Label { + single-line-mode: true; styles [ "title" ] @@ -75,6 +77,7 @@ template $AudreyUiPlayQueueSong: Box { } Label { + single-line-mode: true; styles [ "subtitle" ] diff --git a/resources/playbar.blp b/resources/playbar.blp index 24b5380..a38c2fb 100644 --- a/resources/playbar.blp +++ b/resources/playbar.blp @@ -41,6 +41,7 @@ template $AudreyUiPlaybar: Adw.Bin { valign: center; Label { + single-line-mode: true; styles [ "heading" ] @@ -53,6 +54,7 @@ template $AudreyUiPlaybar: Adw.Bin { } Label { + single-line-mode: true; styles [ "caption" ] @@ -65,6 +67,7 @@ template $AudreyUiPlaybar: Adw.Bin { } Label { + single-line-mode: true; styles [ "caption" ] @@ -86,6 +89,7 @@ template $AudreyUiPlaybar: Adw.Bin { CenterBox { [start] Label play_position_label { + single-line-mode: true; styles [ "caption", "numeric", @@ -112,6 +116,7 @@ template $AudreyUiPlaybar: Adw.Bin { [end] Label play_duration { + single-line-mode: true; styles [ "caption", "numeric",