Rename theme::Definition to application::StyleSheet
This commit is contained in:
parent
3e8f4cdd13
commit
7f3b7075db
12 changed files with 37 additions and 27 deletions
|
|
@ -1,8 +1,9 @@
|
|||
use crate::pure::{self, Pure};
|
||||
use crate::theme;
|
||||
use crate::window;
|
||||
use crate::{Command, Executor, Settings, Subscription};
|
||||
|
||||
pub use iced_native::application::StyleSheet;
|
||||
|
||||
/// A pure version of [`Application`].
|
||||
///
|
||||
/// Unlike the impure version, the `view` method of this trait takes an
|
||||
|
|
@ -23,7 +24,7 @@ pub trait Application: Sized {
|
|||
type Message: std::fmt::Debug + Send;
|
||||
|
||||
/// The theme of your [`Application`].
|
||||
type Theme: Default + theme::Definition;
|
||||
type Theme: Default + StyleSheet;
|
||||
|
||||
/// The data needed to initialize your [`Application`].
|
||||
type Flags;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue