feat: impl catppuccin theme

This commit is contained in:
2026-04-26 00:46:11 +01:00
parent dab18c40c5
commit 3b0fe3e311
6 changed files with 118 additions and 58 deletions

View File

@@ -46,7 +46,9 @@ pub fn open_window(screen: Screen, cx: &mut gpui::App) -> anyhow::Result<()> {
cx.new(|cx| {
cx.observe_window_appearance(window, |_, window, cx| {
cx.update_global::<app::Global, ()>(|global, cx| {
global.current_theme = window.appearance().into();
global.current_theme = global
.theme_family
.theme_for_appearance(window.appearance());
cx.notify();
});
})