Skip to content

Commit

Permalink
Use base_style for checkboxs (lapce#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoxc authored and jrmoulton committed Nov 6, 2023
1 parent 65de705 commit c5c4492
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 c5c4492

Please sign in to comment.