Add preview for Checkbox with Label (#20448)

Add previews for Checkbox with Label.

Merge checkbox components.

Release Notes:

- N/A
This commit is contained in:
Nate Butler 2024-11-08 22:53:15 -05:00 committed by GitHub
parent 31a6ee0229
commit 0a28800049
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 90 additions and 222 deletions

View file

@ -5,7 +5,7 @@ use theme::all_theme_colors;
use ui::{
element_cell, prelude::*, string_cell, utils::calculate_contrast_ratio, AudioStatus,
Availability, Avatar, AvatarAudioStatusIndicator, AvatarAvailabilityIndicator, ButtonLike,
Checkbox, ElevationIndex, Facepile, Indicator, Table, TintColor, Tooltip,
Checkbox, CheckboxWithLabel, ElevationIndex, Facepile, Indicator, Table, TintColor, Tooltip,
};
use crate::{Item, Workspace};
@ -510,6 +510,7 @@ impl ThemePreview {
.size_full()
.gap_2()
.child(Checkbox::render_component_previews(cx))
.child(CheckboxWithLabel::render_component_previews(cx))
.child(Facepile::render_component_previews(cx))
.child(Button::render_component_previews(cx))
.child(Indicator::render_component_previews(cx))