Fix small issues with font size

pull/933/head
Alinson S. Xavier 4 years ago
parent fcadbe7c38
commit c973f93424
No known key found for this signature in database
GPG Key ID: DCA0DAD4D2F58624

@ -4,6 +4,7 @@
### Fixed ### Fixed
- Fix crash caused by numerical habits with zero target (#903) - Fix crash caused by numerical habits with zero target (#903)
- Fix small issues with font size
## [2.0.1] - 2021-05-09 ## [2.0.1] - 2021-05-09

@ -153,7 +153,7 @@ class CheckmarkButtonView(
paint.style = Paint.Style.FILL paint.style = Paint.Style.FILL
} }
paint.textSize = when (value) { paint.textSize = when (id) {
UNKNOWN -> dim(R.dimen.smallerTextSize) UNKNOWN -> dim(R.dimen.smallerTextSize)
else -> dim(R.dimen.smallTextSize) else -> dim(R.dimen.smallTextSize)
} }

@ -136,6 +136,7 @@ class BarChart(
canvas.drawLine(0.0, y, width, y) canvas.drawLine(0.0, y, width, y)
canvas.setColor(theme.mediumContrastTextColor) canvas.setColor(theme.mediumContrastTextColor)
canvas.setTextAlign(TextAlign.CENTER) canvas.setTextAlign(TextAlign.CENTER)
canvas.setFontSize(theme.smallTextSize)
var prevMonth = -1 var prevMonth = -1
var prevYear = -1 var prevYear = -1
val isLargeInterval = axis.size < 2 || (axis[0].distanceTo(axis[1]) > 300) val isLargeInterval = axis.size < 2 || (axis[0].distanceTo(axis[1]) > 300)

Loading…
Cancel
Save