use centerbox for seekbar

This commit is contained in:
me 2024-10-13 08:05:18 +00:00
parent 7fedaae778
commit ff2b0ddad5

View file

@ -120,10 +120,8 @@ paintable: bind template.playing_cover_art;
halign: center; halign: center;
hexpand: true; hexpand: true;
Box { CenterBox {
halign: center; [start]
orientation: horizontal;
Label play_position_label { Label play_position_label {
styles [ styles [
"caption", "caption",
@ -133,6 +131,7 @@ paintable: bind template.playing_cover_art;
label: bind $format_timestamp (template.position) as <string>; label: bind $format_timestamp (template.position) as <string>;
} }
[center]
Scale play_position { Scale play_position {
name: "seek-scale"; name: "seek-scale";
orientation: horizontal; orientation: horizontal;
@ -147,6 +146,7 @@ paintable: bind template.playing_cover_art;
change-value => $on_play_position_seek (); change-value => $on_play_position_seek ();
} }
[end]
Label play_duration { Label play_duration {
styles [ styles [
"caption", "caption",