single-line-mode for all labels

This commit is contained in:
Erica Z 2024-11-26 16:14:13 +01:00
parent 8c61f7545b
commit 3eb412d7b2
3 changed files with 11 additions and 0 deletions

View file

@ -15,6 +15,7 @@ template $AudreyUiAlbumCarousel: Adw.Bin {
height-request: 42; height-request: 42;
Label { Label {
single-line-mode: true;
label: bind template.title; label: bind template.title;
styles [ styles [
@ -106,6 +107,7 @@ template $AudreyUiAlbumCarousel: Adw.Bin {
homogeneous: true; homogeneous: true;
Label { Label {
single-line-mode: true;
label: bind template.item as <$AudreyModelAlbum>.name; label: bind template.item as <$AudreyModelAlbum>.name;
ellipsize: end; ellipsize: end;
xalign: 0; xalign: 0;
@ -117,6 +119,7 @@ template $AudreyUiAlbumCarousel: Adw.Bin {
} }
Label { Label {
single-line-mode: true;
label: bind template.item as <$AudreyModelAlbum>.artist; label: bind template.item as <$AudreyModelAlbum>.artist;
ellipsize: end; ellipsize: end;
xalign: 0; xalign: 0;

View file

@ -19,6 +19,7 @@ template $AudreyUiPlayQueueSong: Box {
} }
Label { Label {
single-line-mode: true;
visible: bind template.current inverted; visible: bind template.current inverted;
focusable: false; focusable: false;
halign: end; halign: end;
@ -60,6 +61,7 @@ template $AudreyUiPlayQueueSong: Box {
orientation: vertical; orientation: vertical;
Label { Label {
single-line-mode: true;
styles [ styles [
"title" "title"
] ]
@ -75,6 +77,7 @@ template $AudreyUiPlayQueueSong: Box {
} }
Label { Label {
single-line-mode: true;
styles [ styles [
"subtitle" "subtitle"
] ]

View file

@ -41,6 +41,7 @@ template $AudreyUiPlaybar: Adw.Bin {
valign: center; valign: center;
Label { Label {
single-line-mode: true;
styles [ styles [
"heading" "heading"
] ]
@ -53,6 +54,7 @@ template $AudreyUiPlaybar: Adw.Bin {
} }
Label { Label {
single-line-mode: true;
styles [ styles [
"caption" "caption"
] ]
@ -65,6 +67,7 @@ template $AudreyUiPlaybar: Adw.Bin {
} }
Label { Label {
single-line-mode: true;
styles [ styles [
"caption" "caption"
] ]
@ -86,6 +89,7 @@ template $AudreyUiPlaybar: Adw.Bin {
CenterBox { CenterBox {
[start] [start]
Label play_position_label { Label play_position_label {
single-line-mode: true;
styles [ styles [
"caption", "caption",
"numeric", "numeric",
@ -112,6 +116,7 @@ template $AudreyUiPlaybar: Adw.Bin {
[end] [end]
Label play_duration { Label play_duration {
single-line-mode: true;
styles [ styles [
"caption", "caption",
"numeric", "numeric",