#![allow(dead_code, unused_variables)] use gpui::{elements::Empty, Element}; use log::LevelFilter; use simplelog::SimpleLogger; fn main() { SimpleLogger::init(LevelFilter::Info, Default::default()).expect("could not initialize logger"); gpui::App::new(()).unwrap().run(|cx| { cx.platform().activate(true); // cx.add_window( // WindowOptions { // titlebar: Some(TitlebarOptions { // appears_transparent: true, // ..Default::default() // }), // ..Default::default() // }, // |_| view(|_| Playground::new()), // ); }); } use std::marker::PhantomData; use themes::ThemeColors; mod color; mod frame; mod style; mod themes; mod tokens; #[derive(Element, Clone)] pub struct Playground(PhantomData); impl Playground { pub fn new() -> Self { Self(PhantomData) } pub fn render(&mut self, _: &mut V, _: &mut gpui::ViewContext) -> impl Element { Empty::new() // workspace(&rose_pine::dawn()) } } // fn workspace(theme: &ThemeColors) -> impl Element { // todo!() // // column() // // .size(auto()) // // .fill(theme.base(0.5)) // // .text_color(theme.text(0.5)) // // .child(title_bar(theme)) // // .child(stage(theme)) // // .child(status_bar(theme)) // } // fn title_bar(theme: &ThemeColors) -> impl Element { // row() // .fill(theme.base(0.2)) // .justify(0.) // .width(auto()) // .child(text("Zed Playground")) // } // fn stage(theme: &ThemeColors) -> impl Element { // row().fill(theme.surface(0.9)) // } // fn status_bar(theme: &ThemeColors) -> impl Element { // row().fill(theme.surface(0.1)) // }