From abbc357af9cb1dfa3d4d2859a7c5b32d69a31d66 Mon Sep 17 00:00:00 2001 From: so9010 Date: Fri, 12 Jul 2024 13:39:57 +0100 Subject: [PATCH] Align dividers --- psst-gui/src/ui/mod.rs | 4 +--- psst-gui/src/ui/queued.rs | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/psst-gui/src/ui/mod.rs b/psst-gui/src/ui/mod.rs index 05ee7a4b..42e31453 100644 --- a/psst-gui/src/ui/mod.rs +++ b/psst-gui/src/ui/mod.rs @@ -128,15 +128,13 @@ fn root_widget() -> impl Widget { .with_default_spacer() .with_child(user::user_widget()) .center() - .fix_height(100.0) + .fix_height(88.0) .background(Border::Top.with_color(theme::GREY_500)); let sidebar = Flex::column() .with_flex_child(playlists, 1.0) .with_child(controls) .background(theme::BACKGROUND_DARK) - // Contraint needed to prevent the sidebar from expanding to fill the entire window. - // Should it be wider? It is currently the same size as the queue view. .fix_width(185.0); let topbar = Flex::row() diff --git a/psst-gui/src/ui/queued.rs b/psst-gui/src/ui/queued.rs index 95d1c232..a9e07304 100644 --- a/psst-gui/src/ui/queued.rs +++ b/psst-gui/src/ui/queued.rs @@ -48,7 +48,8 @@ fn queue_header_widget() -> impl Widget { .center(), 1.0, ) - .padding(theme::grid(2.0)) + .fix_height(32.0) + .padding(theme::grid(1.0)) .expand_width() .background(Border::Bottom.with_color(theme::GREY_500)) }