Skip to content

Commit

Permalink
Use base_style for checkboxs (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoxc authored Nov 1, 2023
1 parent 28a00e1 commit f72679a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/svg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub fn checkbox(checked: crate::reactive::ReadSignal<bool>) -> Svg {
let svg_str = move || if checked.get() { CHECKBOX_SVG } else { "" }.to_string();

svg(svg_str)
.style(|base| {
.base_style(|base| {
base.width(20.)
.height(20.)
.border_color(Color::BLACK)
Expand Down

0 comments on commit f72679a

Please sign in to comment.