From 5c28c688faff2a92fd21b2d517f58f83116b8208 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Mon, 8 Jan 2024 13:51:18 -0500 Subject: [PATCH] theme: Removed commented-out `ActiveTheme` impl (#3950) This PR removes a commented-out implementation for the `ActiveTheme` trait on the `WindowContext`. We don't need this implementation as we can go through the `AppContext`'s implementation. Release Notes: - N/A --- crates/theme/src/theme.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/crates/theme/src/theme.rs b/crates/theme/src/theme.rs index c526a381b72f29d0cb0dc9e9ff5724ba38a69c13..93253b95e7358962707ef0fc22fbe01a01f7cd56 100644 --- a/crates/theme/src/theme.rs +++ b/crates/theme/src/theme.rs @@ -73,13 +73,6 @@ impl ActiveTheme for AppContext { } } -// todo!() -// impl<'a> ActiveTheme for WindowContext<'a> { -// fn theme(&self) -> &Arc { -// &ThemeSettings::get_global(self.app()).active_theme -// } -// } - pub struct ThemeFamily { pub id: String, pub name: SharedString,