Skip to content

Commit

Permalink
Fix corner radius looking bad when graph bars are too short
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Jun 25, 2024
1 parent 66b093b commit 2de4285
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ protected override void Update()
{
base.Update();

CircularBar.CornerRadius = CircularBar.DrawWidth / 4;
CircularBar.CornerRadius = Math.Min(CircularBar.DrawHeight / 2, CircularBar.DrawWidth / 4);
}

public void UpdateCounts(long newCount, long newMax)
Expand Down

0 comments on commit 2de4285

Please sign in to comment.