Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
Eliminate usage of .base_style()
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterdd committed Jan 1, 2024
1 parent 7c49cbb commit b1cbdb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/checkbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ impl Theme {
s.disabled(|s| s.color(self.accent_color.get().disabled_text_color()))
}),
))
.base_style(|s| s.align_items(AlignItems::Center))
.keyboard_navigatable()
.style(|s| {
s.border_radius(5.0)
s.align_items(AlignItems::Center)
.border_radius(5.0)
.focus_visible(|s| {
s.outline(2.0)
.outline_color(Color::WHITE.with_alpha_factor(0.5))
Expand Down
4 changes: 2 additions & 2 deletions src/radio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ impl Theme {
s.disabled(|s| s.color(self.accent_color.get().disabled_text_color()))
}),
))
.base_style(|s| s.align_items(AlignItems::Center))
.keyboard_navigatable()
.style(move |s| {
s.border_radius(5.0)
s.align_items(AlignItems::Center)
.border_radius(5.0)
.focus_visible(|s| {
s.outline(2.0)
.outline_color(Color::WHITE.with_alpha_factor(0.5))
Expand Down

0 comments on commit b1cbdb5

Please sign in to comment.