Skip to content

Commit

Permalink
Include border style in active bar and make the border color transpar…
Browse files Browse the repository at this point in the history
…ent.
  • Loading branch information
B0ney committed Aug 2, 2024
1 parent 983ef5a commit b0e6523
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions widget/src/progress_bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,23 +152,15 @@ where
width: active_progress_width,
..bounds
},
border: border::rounded(style.border.radius),
border: Border {
color: Color::TRANSPARENT,
..style.border
},
..renderer::Quad::default()
},
style.bar,
);
}

if style.border.color != Color::TRANSPARENT {
renderer.fill_quad(
renderer::Quad {
bounds: Rectangle { ..bounds },
border: style.border,
..renderer::Quad::default()
},
Color::TRANSPARENT,
);
}
}
}

Expand Down

0 comments on commit b0e6523

Please sign in to comment.