diff options
author | 2024-03-07 20:11:32 +0100 | |
---|---|---|
committer | 2024-03-07 20:11:32 +0100 | |
commit | 833538ee7f3a60a839304762dfc29b0881d19094 (patch) | |
tree | 7afbc69659c95f9cbec58c938f1939cca3290b04 /src/sandbox.rs | |
parent | 44f002f64a9d53040f09affe69bd92675e302e16 (diff) | |
download | iced-833538ee7f3a60a839304762dfc29b0881d19094.tar.gz iced-833538ee7f3a60a839304762dfc29b0881d19094.tar.bz2 iced-833538ee7f3a60a839304762dfc29b0881d19094.zip |
Leverage `DefaultStyle` traits instead of `Default`
Diffstat (limited to '')
-rw-r--r-- | src/sandbox.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sandbox.rs b/src/sandbox.rs index ab0e8d3d..568b673e 100644 --- a/src/sandbox.rs +++ b/src/sandbox.rs @@ -122,7 +122,9 @@ pub trait Sandbox { /// Returns the current [`application::Appearance`]. fn style(&self, theme: &Theme) -> application::Appearance { - crate::shell::application::default(theme) + use application::DefaultStyle; + + theme.default_style() } /// Returns the scale factor of the [`Sandbox`]. |