From 4f8ed7d6ee09c75fb5e9b3cd7bcf68086e602bc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Tue, 27 Feb 2024 15:41:20 +0100 Subject: [PATCH] Implement `palette` method for `Theme` --- style/src/theme.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/style/src/theme.rs b/style/src/theme.rs index 0b56e101..6844039d 100644 --- a/style/src/theme.rs +++ b/style/src/theme.rs @@ -275,6 +275,10 @@ impl application::StyleSheet for Theme { Application::Custom(custom) => custom.appearance(self), } } + + fn palette(&self) -> Option { + Some(self.palette()) + } } impl application::Appearance> application::StyleSheet for T {