From 5ff520c93d86bacbda0ef614e47e3ebc9e170165 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 20 Mar 2019 19:04:22 +0100 Subject: [PATCH] increase the dimmed events alpha on widgets --- .../calendar/pro/helpers/MyWidgetMonthlyProvider.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/MyWidgetMonthlyProvider.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/MyWidgetMonthlyProvider.kt index dce554934..474eafded 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/MyWidgetMonthlyProvider.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/MyWidgetMonthlyProvider.kt @@ -112,7 +112,7 @@ class MyWidgetMonthlyProvider : AppWidgetProvider() { } } - val weakTextColor = textColor.adjustAlpha(LOW_ALPHA) + val weakTextColor = textColor.adjustAlpha(MEDIUM_ALPHA) for (i in 0 until len) { val day = days[i] val currTextColor = if (day.isThisMonth) textColor else weakTextColor @@ -126,8 +126,8 @@ class MyWidgetMonthlyProvider : AppWidgetProvider() { var eventTextColor = backgroundColor.getContrastColor() if (!day.isThisMonth || (dimPastEvents && it.isPastEvent)) { - eventTextColor = eventTextColor.adjustAlpha(0.25f) - backgroundColor = backgroundColor.adjustAlpha(0.25f) + eventTextColor = eventTextColor.adjustAlpha(MEDIUM_ALPHA) + backgroundColor = backgroundColor.adjustAlpha(MEDIUM_ALPHA) } val newRemoteView = RemoteViews(packageName, R.layout.day_monthly_event_view).apply {