refactor!(widget): rename view_switcher to tab_bar to match Figma docs

This commit is contained in:
Michael Aaron Murphy 2024-02-26 16:26:33 +01:00 committed by Michael Murphy
parent bfc84c4759
commit ff9438c5ba
5 changed files with 14 additions and 16 deletions

View file

@ -65,7 +65,7 @@ where
/ num as f32;
}
let segmented_selection = matches!(self.style, crate::theme::SegmentedButton::Control);
let segmetned_control = matches!(self.style, crate::theme::SegmentedButton::Control);
Box::new(
self.model
@ -91,7 +91,7 @@ where
let button_bounds = ItemBounds::Button(key, layout_bounds);
let mut divider = None;
if self.dividers && segmented_selection && nth + 1 < num {
if self.dividers && segmetned_control && nth + 1 < num {
divider = Some(ItemBounds::Divider(Rectangle {
width: 1.0,
..bounds