summaryrefslogtreecommitdiffstats
path: root/src/application.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-05-26 19:02:15 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-05-26 19:02:15 +0200
commit7f3b7075db68a215f4331b4bfba1c8ddd1c4d7f3 (patch)
treefb616dc39053d3249829c8a31976a1fd569153e5 /src/application.rs
parent3e8f4cdd138d3f927ce8a3ea451cbfcca52af0d9 (diff)
downloadiced-7f3b7075db68a215f4331b4bfba1c8ddd1c4d7f3.tar.gz
iced-7f3b7075db68a215f4331b4bfba1c8ddd1c4d7f3.tar.bz2
iced-7f3b7075db68a215f4331b4bfba1c8ddd1c4d7f3.zip
Rename `theme::Definition` to `application::StyleSheet`
Diffstat (limited to 'src/application.rs')
-rw-r--r--src/application.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/application.rs b/src/application.rs
index 01571b56..b7c8cf9f 100644
--- a/src/application.rs
+++ b/src/application.rs
@@ -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;