From a69a96502d23b674744382d28daf514567593167 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 23 Feb 2021 17:04:18 +0100 Subject: [PATCH] some tweaks to the monthly daily view --- .../com/simplemobiletools/calendar/pro/views/MonthView.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/views/MonthView.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/views/MonthView.kt index 707615521..f1d9d0d55 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/views/MonthView.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/views/MonthView.kt @@ -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)