ui: Clean up PlatformTitlebar implementation (#9413)

This PR cleans up the implementation of the `PlatformTitlebar` component
to better match our conventions for building UI components.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-03-15 14:31:02 -04:00 committed by GitHub
parent db43479be8
commit 123d3ee282
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 159 additions and 123 deletions

View file

@ -29,6 +29,7 @@ pub enum ComponentStory {
ListHeader,
ListItem,
OverflowScroll,
PlatformTitlebar,
Scroll,
Tab,
TabBar,
@ -60,6 +61,7 @@ impl ComponentStory {
Self::ListHeader => cx.new_view(|_| ui::ListHeaderStory).into(),
Self::ListItem => cx.new_view(|_| ui::ListItemStory).into(),
Self::OverflowScroll => cx.new_view(|_| crate::stories::OverflowScrollStory).into(),
Self::PlatformTitlebar => cx.new_view(|_| ui::PlatformTitlebarStory).into(),
Self::Scroll => ScrollStory::view(cx).into(),
Self::Text => TextStory::view(cx).into(),
Self::Tab => cx.new_view(|_| ui::TabStory).into(),