From 81bed94148dfdc60997d14db603a4c7f2d13bb51 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 10 Feb 2024 00:32:03 +0100 Subject: Use custom `Application::style` to enable transparency --- style/src/theme.rs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'style/src') diff --git a/style/src/theme.rs b/style/src/theme.rs index afb4d027..235aecbd 100644 --- a/style/src/theme.rs +++ b/style/src/theme.rs @@ -172,6 +172,15 @@ pub enum Application { Custom(Box>), } +impl Application { + /// Creates a custom [`Application`] style. + pub fn custom( + custom: impl application::StyleSheet