Restore more active styles

This commit is contained in:
Marshall Bowers 2023-10-19 14:23:45 -04:00
parent 743949753a
commit d5fc831321
2 changed files with 5 additions and 4 deletions

View file

@ -84,15 +84,15 @@ impl<S: 'static + Send + Sync + Clone> Palette<S> {
.into_iter()
.flatten(),
)
.children(self.items.iter().map(|item| {
.children(self.items.iter().enumerate().map(|(index, item)| {
h_stack()
.id(index)
.justify_between()
.px_2()
.py_0p5()
.rounded_lg()
.hover(|style| style.bg(theme.lowest.base.hovered.background))
// .active()
// .fill(theme.lowest.base.pressed.background)
.active(|style| style.bg(theme.lowest.base.pressed.background))
.child(item.clone())
})),
),