mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-11 21:00:35 +00:00
Rename theme2
getter to theme
This commit is contained in:
parent
258496700f
commit
bb3f59252e
2 changed files with 3 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
use crate::theme2;
|
use crate::theme;
|
||||||
pub use crate::{old_theme, ButtonVariant, ElementExt, Theme};
|
pub use crate::{old_theme, ButtonVariant, ElementExt, Theme};
|
||||||
use gpui2::{hsla, rgb, Hsla, WindowContext};
|
use gpui2::{hsla, rgb, Hsla, WindowContext};
|
||||||
use strum::EnumIter;
|
use strum::EnumIter;
|
||||||
|
@ -253,8 +253,7 @@ impl std::fmt::Debug for ThemeColor {
|
||||||
|
|
||||||
impl ThemeColor {
|
impl ThemeColor {
|
||||||
pub fn new(cx: &WindowContext) -> Self {
|
pub fn new(cx: &WindowContext) -> Self {
|
||||||
let theme = old_theme(cx);
|
let theme2 = theme(cx);
|
||||||
let theme2 = theme2(cx);
|
|
||||||
let transparent = hsla(0.0, 0.0, 0.0, 0.0);
|
let transparent = hsla(0.0, 0.0, 0.0, 0.0);
|
||||||
|
|
||||||
let players = [
|
let players = [
|
||||||
|
|
|
@ -218,6 +218,6 @@ pub fn old_theme(cx: &WindowContext) -> Arc<Theme> {
|
||||||
Arc::new(cx.global::<Theme>().clone())
|
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()
|
cx.global::<Arc<theme2::Theme>>().clone()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue