Use content container
This commit is contained in:
parent
aa26def795
commit
c93032ab9d
1 changed files with 2 additions and 8 deletions
10
src/main.rs
10
src/main.rs
|
|
@ -17,7 +17,7 @@ use cosmic::{
|
|||
window, Alignment, Color, Event, Length, Limits, Padding, Point,
|
||||
},
|
||||
style,
|
||||
widget::{self, button, container, pane_grid, segmented_button, PaneGrid},
|
||||
widget::{self, button, pane_grid, segmented_button, PaneGrid},
|
||||
Application, ApplicationExt, Element,
|
||||
};
|
||||
use cosmic_text::{fontdb::FaceInfo, Family, Stretch, Weight};
|
||||
|
|
@ -934,7 +934,6 @@ 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>) {
|
||||
core.window.content_container = false;
|
||||
core.window.show_headerbar = flags.config.show_headerbar;
|
||||
|
||||
// Update font name from config
|
||||
|
|
@ -1897,12 +1896,7 @@ impl Application for App {
|
|||
.on_resize(space_xxs, Message::PaneResized)
|
||||
.on_drag(Message::PaneDragged);
|
||||
|
||||
container(pane_grid)
|
||||
.width(Length::Fill)
|
||||
.height(Length::Fill)
|
||||
.padding(space_xxs)
|
||||
.style(style::Container::Background)
|
||||
.into()
|
||||
pane_grid.into()
|
||||
}
|
||||
|
||||
fn subscription(&self) -> Subscription<Self::Message> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue