Skip to content

Commit 0deb7b3

Browse files
owhionetrusetuhecruos@schn.emaileliasnaur
authored andcommitted
material: improve progress indicator layout
Fixes: https://todo.sr.ht/~eliasnaur/gio/570 Signed-off-by: Walter Werner SCHNEIDER <contact@schnwalter.eu>
1 parent e8c73bc commit 0deb7b3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

widget/material/progressbar.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ func (p ProgressBarStyle) Layout(gtx layout.Context) layout.Dimensions {
5454
if !gtx.Enabled() {
5555
fillColor = f32color.Disabled(fillColor)
5656
}
57+
if fillWidth < int(p.Radius*2) {
58+
fillWidth = int(p.Radius * 2)
59+
}
5760
return shader(fillWidth, fillColor)
5861
}),
5962
)

0 commit comments

Comments
 (0)