Finish building out adapters and names

Document core traits
Add start for a component storybook
This commit is contained in:
Mikayla 2023-08-19 14:40:05 -07:00
parent bd3ab82dac
commit e946b0a2ec
No known key found for this signature in database
8 changed files with 213 additions and 153 deletions

View file

@ -17,8 +17,8 @@ use gpui::{
actions,
elements::{
Canvas, ChildView, Component, Empty, Flex, Image, Label, List, ListOffset, ListState,
MouseEventHandler, Orientation, OverlayPositionMode, Padding, ParentElement, Stack,
StyleableComponent, Svg,
MouseEventHandler, Orientation, OverlayPositionMode, Padding, ParentElement, SafeStylable,
Stack, Svg,
},
geometry::{
rect::RectF,
@ -1633,11 +1633,8 @@ impl CollabPanel {
})
.align_children_center()
.styleable_component()
.disclosable(
disclosed,
Box::new(ToggleCollapsed { channel_id }),
channel_id as usize,
)
.disclosable(disclosed, Box::new(ToggleCollapsed { channel_id }))
.with_id(channel_id as usize)
.with_style(theme.disclosure.clone())
.element()
.constrained()