pub trait ThemeFn<State, Theme> {
// Required method
fn theme(&self, state: &State, window: Id) -> Option<Theme>;
}
Expand description
The theme logic of some Daemon
.
Any implementors of this trait can be provided as an argument to
Daemon::theme
.
iced
provides two implementors:
- the built-in
Theme
itself - and any
Fn(&State, window::Id) -> impl Into<Option<Theme>>
.