diff options
author | 2021-10-18 16:02:30 +0700 | |
---|---|---|
committer | 2021-10-18 16:02:30 +0700 | |
commit | 3140cdc4babcefc444f1c1d30eb0f5f4ed1df054 (patch) | |
tree | b3ea963a73118d5f0bfd7d875ba776ee51466f9b /graphics | |
parent | 95acc1deb89c4e75b513edb0f4d53b83c7f75b30 (diff) | |
download | iced-3140cdc4babcefc444f1c1d30eb0f5f4ed1df054.tar.gz iced-3140cdc4babcefc444f1c1d30eb0f5f4ed1df054.tar.bz2 iced-3140cdc4babcefc444f1c1d30eb0f5f4ed1df054.zip |
Wire up styling to `Button` in `iced_native`
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/src/widget/button.rs | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/graphics/src/widget/button.rs b/graphics/src/widget/button.rs index 990aac9f..3d3e6675 100644 --- a/graphics/src/widget/button.rs +++ b/graphics/src/widget/button.rs @@ -1,23 +1,12 @@ //! Allow your users to perform actions by pressing a button. //! //! A [`Button`] has some local [`State`]. -use crate::{Backend, Renderer}; -use iced_native::Padding; +use crate::Renderer; -pub use iced_native::button::State; -pub use iced_style::button::{Style, StyleSheet}; +pub use iced_native::button::{State, Style, StyleSheet}; /// A widget that produces a message when clicked. /// /// This is an alias of an `iced_native` button with an `iced_wgpu::Renderer`. pub type Button<'a, Message, Backend> = iced_native::Button<'a, Message, Renderer<Backend>>; - -impl<B> iced_native::button::Renderer for Renderer<B> -where - B: Backend, -{ - const DEFAULT_PADDING: Padding = Padding::new(5); - - type Style = Box<dyn StyleSheet>; -} |