Rename theme::Definition to application::StyleSheet

This commit is contained in:
Héctor Ramón Jiménez 2022-05-26 19:02:15 +02:00
parent 3e8f4cdd13
commit 7f3b7075db
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
12 changed files with 37 additions and 27 deletions

View file

@ -1,7 +1,8 @@
use crate::theme;
use crate::window;
use crate::{Command, Element, Executor, Settings, Subscription};
pub use iced_native::application::StyleSheet;
/// An interactive cross-platform application.
///
/// This trait is the main entrypoint of Iced. Once implemented, you can run
@ -102,7 +103,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;