auth_modal.rs
1use gpui::{elements::Label, Element, Entity, View};
2use settings::Settings;
3
4pub struct AuthModal {}
5
6impl Entity for AuthModal {
7 type Event = ();
8}
9
10impl View for AuthModal {
11 fn ui_name() -> &'static str {
12 "AuthModal"
13 }
14
15 fn render(&mut self, cx: &mut gpui::RenderContext<'_, Self>) -> gpui::ElementBox {
16 let style = &cx.global::<Settings>().theme.copilot;
17
18 Label::new("[COPILOT AUTH INFO]", style.auth_modal.clone()).boxed()
19 }
20}