wip: connect to github
This commit is contained in:
@@ -47,6 +47,10 @@ pub enum Variant {
|
||||
VioletDark,
|
||||
}
|
||||
|
||||
pub(crate) fn current(cx: &gpui::App) -> &Theme {
|
||||
cx.global::<Theme>()
|
||||
}
|
||||
|
||||
impl Variant {
|
||||
#[allow(dead_code)]
|
||||
pub const ALL: [Self; 2] = [Self::VioletLight, Self::VioletDark];
|
||||
@@ -115,3 +119,5 @@ impl From<gpui::WindowAppearance> for Theme {
|
||||
variant.theme()
|
||||
}
|
||||
}
|
||||
|
||||
impl gpui::Global for Theme {}
|
||||
|
||||
Reference in New Issue
Block a user