Skip to content

Commit

Permalink
Fix small issues with font size
Browse files Browse the repository at this point in the history
  • Loading branch information
iSoron committed May 16, 2021
1 parent fcadbe7 commit c973f93
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Fixed
- Fix crash caused by numerical habits with zero target (#903)
- Fix small issues with font size

## [2.0.1] - 2021-05-09

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class CheckmarkButtonView(
paint.style = Paint.Style.FILL
}

paint.textSize = when (value) {
paint.textSize = when (id) {
UNKNOWN -> dim(R.dimen.smallerTextSize)
else -> dim(R.dimen.smallTextSize)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ class BarChart(
canvas.drawLine(0.0, y, width, y)
canvas.setColor(theme.mediumContrastTextColor)
canvas.setTextAlign(TextAlign.CENTER)
canvas.setFontSize(theme.smallTextSize)
var prevMonth = -1
var prevYear = -1
val isLargeInterval = axis.size < 2 || (axis[0].distanceTo(axis[1]) > 300)
Expand Down

0 comments on commit c973f93

Please sign in to comment.