Skip to content

Commit

Permalink
(feat) full round
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed May 29, 2024
1 parent ec6ba4d commit 45f22f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bar.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

var barTPL = `
<svg width="{{.Width}}" height="{{.TotalHeight}}" version="1.1" xmlns="http://www.w3.org/2000/svg">
<rect x="0" y="0" width="100%" height="{{.Height}}" fill="{{.BackgroundColor}}" />
<rect x="0" y="0" width="100%" height="{{.Height}}" fill="{{.BackgroundColor}}" rx="{{.CornerRadius}}" ry="{{.CornerRadius}}" />
<rect x="0" y="0" width="{{.ProgressWidth}}" height="{{.Height}}" fill="{{.ProgressColor}}" rx="{{.CornerRadius}}" ry="{{.CornerRadius}}" />
{{if .ShowPercentage}}
<text x="50%" y="{{.HeightHalf}}" font-family="sans-serif" fill="{{.TextColor}}" font-size="{{.TextSize}}px" font-weight="bold" text-anchor="middle" alignment-baseline="middle">{{.Progress}}%</text>
Expand Down

0 comments on commit 45f22f9

Please sign in to comment.