From cb26aedfa22ea036dd67f71cc90e0718d1457d7b Mon Sep 17 00:00:00 2001 From: Mohammad AlSaleh Date: Thu, 25 Jan 2024 13:45:53 +0300 Subject: [PATCH] Disable window content container and set style on pane grid container * Presumably, the TODO about window resizing interfering with scrolling is not applicable anymore with the existence of padding from the pane grid container. So, set `core.window.content_container` to false. * Pane grid container didn't follow the selected theme. So, set style on it to fix that. Signed-off-by: Mohammad AlSaleh --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index f892ff5..eb67985 100644 --- a/src/main.rs +++ b/src/main.rs @@ -717,8 +717,7 @@ impl Application for App { /// Creates the application, and optionally emits command on initialize. fn init(mut core: Core, flags: Self::Flags) -> (Self, Command) { - //TODO: fix window resizing interfering with scrolling when not using content container - //core.window.content_container = false; + core.window.content_container = false; core.window.show_headerbar = flags.config.show_headerbar; // Update font name from config @@ -1520,6 +1519,7 @@ impl Application for App { .width(Length::Fill) .height(Length::Fill) .padding(space_xxs) + .style(style::Container::Background) .into() }