feat(segmented_button): add FileNav style with related widget improvements
This commit is contained in:
parent
8412dd5939
commit
c10695600b
3 changed files with 100 additions and 57 deletions
|
|
@ -18,6 +18,8 @@ pub enum SegmentedButton {
|
|||
Control,
|
||||
/// Navigation bar style
|
||||
NavBar,
|
||||
/// File browser
|
||||
FileNav,
|
||||
/// Or implement any custom theme of your liking.
|
||||
Custom(Box<dyn Fn(&Theme) -> Appearance>),
|
||||
}
|
||||
|
|
@ -69,7 +71,7 @@ impl StyleSheet for Theme {
|
|||
}
|
||||
}
|
||||
|
||||
SegmentedButton::NavBar => Appearance {
|
||||
SegmentedButton::NavBar | SegmentedButton::FileNav => Appearance {
|
||||
active_width: 0.0,
|
||||
..horizontal::tab_bar(cosmic, container)
|
||||
},
|
||||
|
|
@ -124,7 +126,7 @@ impl StyleSheet for Theme {
|
|||
}
|
||||
}
|
||||
|
||||
SegmentedButton::NavBar => Appearance {
|
||||
SegmentedButton::NavBar | SegmentedButton::FileNav => Appearance {
|
||||
active_width: 0.0,
|
||||
..vertical::tab_bar(cosmic, container)
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue