summaryrefslogtreecommitdiffstats
path: root/src/sandbox.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-07 20:11:32 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-07 20:11:32 +0100
commit833538ee7f3a60a839304762dfc29b0881d19094 (patch)
tree7afbc69659c95f9cbec58c938f1939cca3290b04 /src/sandbox.rs
parent44f002f64a9d53040f09affe69bd92675e302e16 (diff)
downloadiced-833538ee7f3a60a839304762dfc29b0881d19094.tar.gz
iced-833538ee7f3a60a839304762dfc29b0881d19094.tar.bz2
iced-833538ee7f3a60a839304762dfc29b0881d19094.zip
Leverage `DefaultStyle` traits instead of `Default`
Diffstat (limited to '')
-rw-r--r--src/sandbox.rs4
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`].