Add basic inspector

This commit is contained in:
Nathan Sobo 2023-09-07 22:24:02 -06:00
parent e7760e1a3f
commit d311bd04ff
8 changed files with 240 additions and 75 deletions

View file

@ -15,6 +15,11 @@ mod element_ext;
mod theme;
mod workspace;
gpui2::actions! {
storybook,
[ToggleInspector]
}
fn main() {
SimpleLogger::init(LevelFilter::Info, Default::default()).expect("could not initialize logger");
@ -33,7 +38,12 @@ fn main() {
center: true,
..Default::default()
},
|_| view(|cx| storybook(cx)),
|cx| {
view(|cx| {
cx.enable_inspector();
storybook(cx)
})
},
);
cx.platform().activate(true);
});