some tweaks to the monthly daily view

This commit is contained in:
tibbi 2021-02-23 17:04:18 +01:00
parent 344e0c73d2
commit a69a96502d
1 changed files with 2 additions and 2 deletions

View File

@ -168,8 +168,8 @@ class MonthView(context: Context, attrs: AttributeSet, defStyle: Int) : View(con
// mark days with events with a dot
if (isMonthDayView && day.dayEvents.isNotEmpty()) {
getCirclePaint(day).getTextBounds(dayNumber, 0, dayNumber.length, dayTextRect)
val height = dayTextRect.height() * 1.15f
canvas.drawCircle(xPosCenter, yPos + height + textPaint.textSize / 2, textPaint.textSize * 0.15f, getDayEventColor(day.dayEvents.first()))
val height = dayTextRect.height() * 1.25f
canvas.drawCircle(xPosCenter, yPos + height + textPaint.textSize / 2, textPaint.textSize * 0.2f, getDayEventColor(day.dayEvents.first()))
}
canvas.drawText(dayNumber, xPosCenter, yPos + textPaint.textSize, textPaint)