Rename fill
to bg
This commit is contained in:
parent
597a9f9548
commit
296a2b8e5d
35 changed files with 136 additions and 106 deletions
|
@ -76,7 +76,7 @@ impl<S: 'static + Send + Sync> IconButton<S> {
|
|||
|
||||
let mut div = div();
|
||||
if self.variant == ButtonVariant::Filled {
|
||||
div = div.fill(theme.highest.on.default.background);
|
||||
div = div.bg(theme.highest.on.default.background);
|
||||
}
|
||||
|
||||
if let Some(click_handler) = self.handlers.click.clone() {
|
||||
|
@ -91,7 +91,7 @@ impl<S: 'static + Send + Sync> IconButton<S> {
|
|||
.items_center()
|
||||
.justify_center()
|
||||
.rounded_md()
|
||||
.hover(|style| style.fill(theme.highest.base.hovered.background))
|
||||
.hover(|style| style.bg(theme.highest.base.hovered.background))
|
||||
// .active()
|
||||
// .fill(theme.highest.base.pressed.background)
|
||||
.child(IconElement::new(self.icon).color(icon_color))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue