fix: use is_maximized
This commit is contained in:
parent
a27bb5e05d
commit
4c4eddb50c
1 changed files with 1 additions and 1 deletions
|
|
@ -391,7 +391,7 @@ where
|
||||||
pub fn style(&self, theme: &Theme) -> iced_runtime::Appearance {
|
pub fn style(&self, theme: &Theme) -> iced_runtime::Appearance {
|
||||||
if let Some(style) = self.app.style() {
|
if let Some(style) = self.app.style() {
|
||||||
style
|
style
|
||||||
} else if self.app.core().window.sharp_corners {
|
} else if self.app.core().window.is_maximized {
|
||||||
let theme = THEME.lock().unwrap();
|
let theme = THEME.lock().unwrap();
|
||||||
crate::style::iced::application::appearance(theme.borrow())
|
crate::style::iced::application::appearance(theme.borrow())
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue