From 7c4bf70023a8092faad9630c2c87fbf41bd6ab76 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 6 Mar 2024 21:27:03 +0100 Subject: Simplify theming for `Application` --- style/src/theme.rs | 45 --------------------------------------------- 1 file changed, 45 deletions(-) (limited to 'style/src/theme.rs') diff --git a/style/src/theme.rs b/style/src/theme.rs index 41e76d99..21ba2a37 100644 --- a/style/src/theme.rs +++ b/style/src/theme.rs @@ -3,8 +3,6 @@ pub mod palette; pub use palette::Palette; -use crate::application; - use std::fmt; use std::sync::Arc; @@ -221,46 +219,3 @@ impl fmt::Display for Custom { write!(f, "{}", self.name) } } - -/// The style of an application. -#[derive(Default)] -pub enum Application { - /// The default style. - #[default] - Default, - /// A custom style. - Custom(Box>), -} - -impl Application { - /// Creates a custom [`Application`] style. - pub fn custom( - custom: impl application::StyleSheet