wip: connect to github

This commit is contained in:
2026-04-23 11:18:43 +01:00
parent 302d0d3222
commit b327648d31
12 changed files with 399 additions and 97 deletions

View File

@@ -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 {}