This PR adds a story for the `ApplicationMenu` so it can be viewed in isolation. <img width="664" alt="Screenshot 2024-07-08 at 4 45 24 PM" src="https://github.com/zed-industries/zed/assets/1486634/dca3dd32-4845-4009-b781-b4bac9ba6049"> Release Notes: - N/A
22 lines
591 B
Rust
22 lines
591 B
Rust
use gpui::Render;
|
|
use story::{StoryContainer, StoryItem, StorySection};
|
|
|
|
use ui::prelude::*;
|
|
|
|
use crate::application_menu::ApplicationMenu;
|
|
|
|
pub struct ApplicationMenuStory;
|
|
|
|
impl Render for ApplicationMenuStory {
|
|
fn render(&mut self, _cx: &mut ViewContext<Self>) -> impl IntoElement {
|
|
StoryContainer::new(
|
|
"ApplicationMenu Story",
|
|
"crates/title_bar/src/stories/application_menu.rs",
|
|
)
|
|
.child(StorySection::new().child(StoryItem::new(
|
|
"Application Menu",
|
|
h_flex().child(ApplicationMenu::new()),
|
|
)))
|
|
}
|
|
}
|