Update storybook2 to run the workspace by default
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
This commit is contained in:
parent
a6a50113da
commit
a35d350cbd
1 changed files with 23 additions and 35 deletions
|
@ -17,6 +17,7 @@ use gpui3::{
|
|||
};
|
||||
use log::LevelFilter;
|
||||
use simplelog::SimpleLogger;
|
||||
use story_selector::ComponentStory;
|
||||
use ui::prelude::*;
|
||||
use ui::themed;
|
||||
|
||||
|
@ -56,8 +57,9 @@ fn main() {
|
|||
|
||||
let asset_source = Arc::new(Assets);
|
||||
gpui3::App::production(asset_source).run(move |cx| {
|
||||
match story_selector {
|
||||
Some(selector) => {
|
||||
let selector =
|
||||
story_selector.unwrap_or(StorySelector::Component(ComponentStory::Workspace));
|
||||
|
||||
let window = cx.open_window(
|
||||
WindowOptions {
|
||||
bounds: WindowBounds::Fixed(Bounds {
|
||||
|
@ -77,20 +79,6 @@ fn main() {
|
|||
)
|
||||
},
|
||||
);
|
||||
}
|
||||
None => {
|
||||
let window = cx.open_window(
|
||||
WindowOptions {
|
||||
bounds: WindowBounds::Fixed(Bounds {
|
||||
origin: Default::default(),
|
||||
size: size(px(800.), px(600.)).into(),
|
||||
}),
|
||||
..Default::default()
|
||||
},
|
||||
|cx| workspace(cx),
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
cx.activate(true);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue