Skip to content

Commit c8652f9

Browse files
authored
1 parent 91de551 commit c8652f9

File tree

32 files changed

+2517
-60
lines changed

32 files changed

+2517
-60
lines changed
Lines changed: 14 additions & 0 deletions
Loading
Lines changed: 14 additions & 0 deletions
Loading
Lines changed: 14 additions & 0 deletions
Loading
Lines changed: 14 additions & 0 deletions
Loading

crates/story/examples/brush.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use gpui_component::{
55
ActiveTheme, Colorize as _, IconName, Sizable,
66
button::Button,
77
checkbox::Checkbox,
8-
group_box::GroupBox,
8+
group_box::{GroupBox, GroupBoxVariants as _},
99
h_flex,
1010
slider::{Slider, SliderState},
1111
v_flex,

crates/story/src/collapsible_story.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use gpui::{
44
Styled, Window, prelude::FluentBuilder as _,
55
};
66

7-
use gpui_component::group_box::GroupBox;
7+
use gpui_component::group_box::{GroupBox, GroupBoxVariants as _};
88
use gpui_component::label::Label;
99
use gpui_component::tag::Tag;
1010
use gpui_component::{ActiveTheme, IconName, StyledExt, h_flex};

crates/story/src/group_box_story.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
use gpui::{
2-
relative, App, AppContext, Context, Entity, Focusable, IntoElement, ParentElement, Render,
3-
StyleRefinement, Styled, Window,
2+
App, AppContext, Context, Entity, Focusable, IntoElement, ParentElement, Render,
3+
StyleRefinement, Styled, Window, relative,
44
};
55

66
use gpui_component::{
7+
ActiveTheme as _, StyledExt,
78
button::{Button, ButtonVariants},
89
checkbox::Checkbox,
9-
group_box::GroupBox,
10+
group_box::{GroupBox, GroupBoxVariants as _},
1011
h_flex,
1112
radio::{Radio, RadioGroup},
1213
switch::Switch,
1314
text::TextView,
14-
v_flex, ActiveTheme as _, StyledExt,
15+
v_flex,
1516
};
1617

1718
use crate::section;

crates/story/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ mod radio_story;
3232
mod resizable_story;
3333
mod scrollable_story;
3434
mod select_story;
35+
mod settings_story;
3536
mod sheet_story;
3637
mod sidebar_story;
3738
mod skeleton_story;
@@ -93,6 +94,7 @@ pub use resizable_story::ResizableStory;
9394
pub use scrollable_story::ScrollableStory;
9495
pub use select_story::SelectStory;
9596
use serde::{Deserialize, Serialize};
97+
pub use settings_story::SettingsStory;
9698
pub use sheet_story::SheetStory;
9799
pub use sidebar_story::SidebarStory;
98100
pub use skeleton_story::SkeletonStory;
@@ -115,7 +117,7 @@ use gpui_component::{
115117
ActiveTheme, IconName, Root, TitleBar, WindowExt,
116118
button::Button,
117119
dock::{Panel, PanelControl, PanelEvent, PanelInfo, PanelState, TitleStyle, register_panel},
118-
group_box::GroupBox,
120+
group_box::{GroupBox, GroupBoxVariants as _},
119121
h_flex,
120122
menu::PopupMenu,
121123
notification::Notification,

crates/story/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ impl Gallery {
7070
StoryContainer::panel::<ResizableStory>(window, cx),
7171
StoryContainer::panel::<ScrollableStory>(window, cx),
7272
StoryContainer::panel::<SelectStory>(window, cx),
73+
StoryContainer::panel::<SettingsStory>(window, cx),
7374
StoryContainer::panel::<SheetStory>(window, cx),
7475
StoryContainer::panel::<SidebarStory>(window, cx),
7576
StoryContainer::panel::<SkeletonStory>(window, cx),

0 commit comments

Comments
 (0)