Skip to content

Commit 04262ab

Browse files
committed
feat: leftpad user and queue count
1 parent e9a528e commit 04262ab

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎player/src/gui.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ impl MainWindow {
111111
status_field.y(),
112112
status_field.width() - 4,
113113
status_field.height(),
114-
"U02 Q12",
114+
"U.. Q..",
115115
);
116116
status_right_display.set_label_size(10);
117117
status_right_display.set_frame(FrameType::NoBox);

‎player/src/main.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ async fn main() -> std::io::Result<()> {
537537
gui.users.add(&line);
538538
}
539539
gui.status_right_display.set_label(&format!(
540-
"U{} Q{}",
540+
"U{:0>2} Q{:0>2}",
541541
gui.users.size(),
542542
queue_gui.queue_browser.size(),
543543
));
@@ -584,7 +584,7 @@ async fn main() -> std::io::Result<()> {
584584
queue_gui.queue_browser.add(&line);
585585
}
586586
gui.status_right_display.set_label(&format!(
587-
"U{} Q{}",
587+
"U{:0>2} Q{:0>2}",
588588
gui.users.size(),
589589
queue_gui.queue_browser.size(),
590590
));

0 commit comments

Comments
 (0)