This commit is contained in:
2026-04-20 22:54:31 +01:00
parent b521c4e4a0
commit 74a01bd9e6
6 changed files with 103 additions and 33 deletions

View File

@@ -1,6 +1,6 @@
use gpui::{div, prelude::*};
use crate::app;
use crate::{api, app};
use crate::query;
use crate::dashboard;
use crate::theme;
@@ -9,7 +9,7 @@ use crate::titlebar;
pub struct Global {
pub safe_area: gpui::Bounds<gpui::Pixels>,
pub current_theme: theme::Theme,
pub query_store: query::Store
pub query_store: query::Store<api::QueryContext>
}
pub struct Chrome {}
@@ -53,6 +53,6 @@ pub fn current_theme<'a, E>(cx: &'a gpui::Context<E>) -> &'a theme::Theme {
&cx.global::<Global>().current_theme
}
pub fn query_store<'a, E>(cx: &'a gpui::Context<E>) -> &'a query::Store {
pub fn query_store<'a, E>(cx: &'a gpui::Context<E>) -> &'a query::Store<api::QueryContext> {
&cx.global::<Global>().query_store
}