Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Rename `theme2` getter to `theme`
Marshall Bowersbb3f59252e4b
diff --git a/crates/ui2/src/color.rs b/crates/ui2/src/color.rsindex dcca95ae961..dfc734a75e7 100644--- a/crates/ui2/src/color.rs+++ b/crates/ui2/src/color.rs@@ -1,4 +1,4 @@-use crate::theme2;+use crate::theme;pub use crate::{old_theme, ButtonVariant, ElementExt, Theme};use gpui2::{hsla, rgb, Hsla, WindowContext};use strum::EnumIter;@@ -253,8 +253,7 @@ impl std::fmt::Debug for ThemeColor {impl ThemeColor {pub fn new(cx: &WindowContext) -> Self {- let theme = old_theme(cx);- let theme2 = theme2(cx);+ let theme2 = theme(cx);let transparent = hsla(0.0, 0.0, 0.0, 0.0);let players = [diff --git a/crates/ui2/src/theme.rs b/crates/ui2/src/theme.rsindex e921019e703..e772fb20613 100644--- a/crates/ui2/src/theme.rs+++ b/crates/ui2/src/theme.rs@@ -218,6 +218,6 @@ pub fn old_theme(cx: &WindowContext) -> Arc<Theme> {Arc::new(cx.global::<Theme>().clone())}-pub fn theme2(cx: &WindowContext) -> Arc<theme2::Theme> {+pub fn theme(cx: &WindowContext) -> Arc<theme2::Theme> {cx.global::<Arc<theme2::Theme>>().clone()}