Wire up container styling to iced_native
This commit is contained in:
parent
edea093350
commit
d61cb58d92
17 changed files with 65 additions and 99 deletions
|
|
@ -1,6 +1,5 @@
|
|||
//! Decorate content and apply alignment.
|
||||
use crate::container;
|
||||
use crate::{Backend, Renderer};
|
||||
use crate::Renderer;
|
||||
|
||||
pub use iced_style::container::{Style, StyleSheet};
|
||||
|
||||
|
|
@ -10,10 +9,3 @@ pub use iced_style::container::{Style, StyleSheet};
|
|||
/// `Renderer`.
|
||||
pub type Container<'a, Message, Backend> =
|
||||
iced_native::Container<'a, Message, Renderer<Backend>>;
|
||||
|
||||
impl<B> iced_native::container::Renderer for Renderer<B>
|
||||
where
|
||||
B: Backend,
|
||||
{
|
||||
type Style = Box<dyn container::StyleSheet>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue