Skip to content

Commit

Permalink
fix:GaugeDrawer Add more spacing for unit drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
tzebrowski committed Nov 1, 2024
1 parent 870ded8 commit b203009
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ internal class GaugeDrawer(
val unitRect = Rect()
val unitTxt = metric.source.command.pid.units
valuePaint.getTextBounds(unitTxt, 0, unitTxt.length, unitRect)
canvas.drawText(unitTxt, area.centerX() + textRect.width() / 2, centerY - valueHeight, valuePaint)
canvas.drawText(unitTxt, area.centerX() + textRect.width() / 2 + 4, centerY - valueHeight, valuePaint)
centerY += unitRect.height() / 2

labelPaint.textSize = drawerSettings.labelTextSize * scaleRatio
Expand Down

0 comments on commit b203009

Please sign in to comment.