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 <CE.Mohammad.AlSaleh@gmail.com>
This commit is contained in:
Mohammad AlSaleh 2024-01-25 13:45:53 +03:00 committed by Jeremy Soller
parent f378bb5fdd
commit cb26aedfa2

View file

@ -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<Self::Message>) {
//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()
}