remove header container
i'm not sure what gaps it is referring to
This commit is contained in:
parent
bf5ffcc2af
commit
1fafd57578
1 changed files with 1 additions and 27 deletions
|
|
@ -815,33 +815,7 @@ impl<App: Application> ApplicationExt for App {
|
||||||
header = header.end(element.map(crate::Action::App));
|
header = header.end(element.map(crate::Action::App));
|
||||||
}
|
}
|
||||||
|
|
||||||
if content_container {
|
header.apply(|w| id_container(w, iced_core::id::Id::new("COSMIC_header")))
|
||||||
header.apply(|w| id_container(w, iced_core::id::Id::new("COSMIC_header")))
|
|
||||||
} else {
|
|
||||||
// Needed to avoid header bar corner gaps for apps without a content container
|
|
||||||
header
|
|
||||||
.apply(container)
|
|
||||||
.class(crate::theme::Container::custom(move |theme| {
|
|
||||||
let cosmic = theme.cosmic();
|
|
||||||
container::Style {
|
|
||||||
background: Some(iced::Background::Color(
|
|
||||||
cosmic.background(theme.transparent).base.into(),
|
|
||||||
)),
|
|
||||||
border: iced::Border {
|
|
||||||
radius: [
|
|
||||||
(window_corner_radius[0] - 1.0).max(0.0),
|
|
||||||
(window_corner_radius[1] - 1.0).max(0.0),
|
|
||||||
cosmic.radius_0()[2],
|
|
||||||
cosmic.radius_0()[3],
|
|
||||||
]
|
|
||||||
.into(),
|
|
||||||
..Default::default()
|
|
||||||
},
|
|
||||||
..Default::default()
|
|
||||||
}
|
|
||||||
}))
|
|
||||||
.apply(|w| id_container(w, iced_core::id::Id::new("COSMIC_header")))
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue