Add ThemeChanged variant to Event in iced_sentinel
This commit is contained in:
parent
7f7c5ea337
commit
c856d2b513
13 changed files with 69 additions and 4 deletions
|
|
@ -2,6 +2,7 @@ use crate::application::{self, StyleSheet as _};
|
|||
use crate::conversion;
|
||||
use crate::core::mouse;
|
||||
use crate::core::{Color, Size};
|
||||
use crate::debug;
|
||||
use crate::graphics::Viewport;
|
||||
use crate::Application;
|
||||
|
||||
|
|
@ -37,6 +38,8 @@ where
|
|||
let theme = application.theme();
|
||||
let appearance = theme.appearance(&application.style());
|
||||
|
||||
let _ = theme.palette().map(debug::theme_changed);
|
||||
|
||||
let viewport = {
|
||||
let physical_size = window.inner_size();
|
||||
|
||||
|
|
@ -211,5 +214,7 @@ where
|
|||
// Update theme and appearance
|
||||
self.theme = application.theme();
|
||||
self.appearance = self.theme.appearance(&application.style());
|
||||
|
||||
let _ = self.theme.palette().map(debug::theme_changed);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue