Implement theme styling for Toggler

... and wire up theming to the `styling` example.
This commit is contained in:
Héctor Ramón Jiménez 2022-05-31 05:13:57 +02:00
parent 28d09bfff1
commit 3e2b6247f7
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
8 changed files with 102 additions and 99 deletions

View file

@ -109,7 +109,7 @@ pub mod scrollable {
pub mod toggler {
//! Show toggle controls using togglers.
pub use iced_pure::widget::toggler::{Style, StyleSheet};
pub use iced_pure::widget::toggler::{Appearance, StyleSheet};
/// A toggler widget.
pub type Toggler<'a, Message, Theme> =

View file

@ -127,7 +127,7 @@ pub mod scrollable {
pub mod toggler {
//! Show toggle controls using togglers.
pub use iced_native::widget::toggler::{Style, StyleSheet};
pub use iced_native::widget::toggler::{Appearance, StyleSheet};
/// A toggler widget.
pub type Toggler<'a, Message, Theme> =