From 833538ee7f3a60a839304762dfc29b0881d19094 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 7 Mar 2024 20:11:32 +0100 Subject: Leverage `DefaultStyle` traits instead of `Default` --- src/sandbox.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/sandbox.rs') 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`]. -- cgit