Skip to content

Commit

Permalink
material: improve progress indicator layout
Browse files Browse the repository at this point in the history
Fixes: https://todo.sr.ht/~eliasnaur/gio/570
Signed-off-by: Walter Werner SCHNEIDER <[email protected]>
  • Loading branch information
[email protected] authored and eliasnaur committed Apr 21, 2024
1 parent e8c73bc commit 0deb7b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions widget/material/progressbar.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ func (p ProgressBarStyle) Layout(gtx layout.Context) layout.Dimensions {
if !gtx.Enabled() {
fillColor = f32color.Disabled(fillColor)
}
if fillWidth < int(p.Radius*2) {
fillWidth = int(p.Radius * 2)
}
return shader(fillWidth, fillColor)
}),
)
Expand Down

0 comments on commit 0deb7b3

Please sign in to comment.