Skip to content

Commit 301d4a1

Browse files
committed
Include border style in active bar and make the border color transparent.
1 parent e142567 commit 301d4a1

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

widget/src/progress_bar.rs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -151,23 +151,15 @@ where
151151
width: active_progress_width,
152152
..bounds
153153
},
154-
border: Border::rounded(style.border.radius),
154+
border: Border {
155+
color: Color::TRANSPARENT,
156+
..style.border
157+
},
155158
..renderer::Quad::default()
156159
},
157160
style.bar,
158161
);
159162
}
160-
161-
if style.border.color != Color::TRANSPARENT {
162-
renderer.fill_quad(
163-
renderer::Quad {
164-
bounds: Rectangle { ..bounds },
165-
border: style.border,
166-
..renderer::Quad::default()
167-
},
168-
Color::TRANSPARENT,
169-
);
170-
}
171163
}
172164
}
173165

0 commit comments

Comments
 (0)