diff options
author | 2022-05-26 19:02:15 +0200 | |
---|---|---|
committer | 2022-05-26 19:02:15 +0200 | |
commit | 7f3b7075db68a215f4331b4bfba1c8ddd1c4d7f3 (patch) | |
tree | fb616dc39053d3249829c8a31976a1fd569153e5 /winit/src/application.rs | |
parent | 3e8f4cdd138d3f927ce8a3ea451cbfcca52af0d9 (diff) | |
download | iced-7f3b7075db68a215f4331b4bfba1c8ddd1c4d7f3.tar.gz iced-7f3b7075db68a215f4331b4bfba1c8ddd1c4d7f3.tar.bz2 iced-7f3b7075db68a215f4331b4bfba1c8ddd1c4d7f3.zip |
Rename `theme::Definition` to `application::StyleSheet`
Diffstat (limited to 'winit/src/application.rs')
-rw-r--r-- | winit/src/application.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/winit/src/application.rs b/winit/src/application.rs index 12279bbb..c7905c60 100644 --- a/winit/src/application.rs +++ b/winit/src/application.rs @@ -6,7 +6,6 @@ pub use state::State; use crate::clipboard::{self, Clipboard}; use crate::conversion; use crate::mouse; -use crate::theme::{self, Definition as _}; use crate::{ Command, Debug, Error, Executor, Mode, Proxy, Runtime, Settings, Size, Subscription, @@ -19,6 +18,8 @@ use iced_graphics::window; use iced_native::program::Program; use iced_native::user_interface::{self, UserInterface}; +pub use iced_native::application::StyleSheet; + use std::mem::ManuallyDrop; /// An interactive, native cross-platform application. @@ -109,7 +110,7 @@ where A: Application + 'static, E: Executor + 'static, C: window::Compositor<Renderer = A::Renderer> + 'static, - <A::Renderer as iced_native::Renderer>::Theme: theme::Definition, + <A::Renderer as iced_native::Renderer>::Theme: StyleSheet, { use futures::task; use futures::Future; @@ -245,7 +246,7 @@ async fn run_instance<A, E, C>( A: Application + 'static, E: Executor + 'static, C: window::Compositor<Renderer = A::Renderer> + 'static, - <A::Renderer as iced_native::Renderer>::Theme: theme::Definition, + <A::Renderer as iced_native::Renderer>::Theme: StyleSheet, { use iced_futures::futures::stream::StreamExt; use winit::event; @@ -506,7 +507,7 @@ pub fn build_user_interface<'a, A: Application>( debug: &mut Debug, ) -> UserInterface<'a, A::Message, A::Renderer> where - <A::Renderer as crate::Renderer>::Theme: theme::Definition, + <A::Renderer as crate::Renderer>::Theme: StyleSheet, { debug.view_started(); let view = application.view(); |