improv: remove double coloring of content_container windows
This sets the main content and the header bar to transparent when `content_container` is true, so that things aren't colored twice and overlayed on top of each other. This ensures that modifying color alpha behaves as expected, especially for frosted glass.
This commit is contained in:
parent
9fcd449611
commit
b71a7c9edf
3 changed files with 13 additions and 2 deletions
|
|
@ -689,7 +689,6 @@ impl<App: Application> ApplicationExt for App {
|
|||
.apply(container)
|
||||
.width(iced::Length::Fill)
|
||||
.height(iced::Length::Fill)
|
||||
.class(crate::theme::Container::WindowBackground)
|
||||
.apply(|w| id_container(w, iced_core::id::Id::new("COSMIC_content_container")))
|
||||
.into()
|
||||
} else {
|
||||
|
|
@ -713,6 +712,7 @@ impl<App: Application> ApplicationExt for App {
|
|||
.focused(focused)
|
||||
.maximized(maximized)
|
||||
.sharp_corners(sharp_corners)
|
||||
.transparent(content_container)
|
||||
.title(&core.window.header_title)
|
||||
.on_drag(crate::Action::Cosmic(Action::Drag))
|
||||
.on_right_click(crate::Action::Cosmic(Action::ShowWindowMenu))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue