Leverage DefaultStyle traits instead of Default
This commit is contained in:
parent
44f002f64a
commit
833538ee7f
30 changed files with 393 additions and 437 deletions
|
|
@ -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`].
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue