increase the dimmed events alpha on widgets

This commit is contained in:
tibbi 2019-03-20 19:04:22 +01:00
parent 87b14ea7c4
commit 5ff520c93d
1 changed files with 3 additions and 3 deletions

View File

@ -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) { for (i in 0 until len) {
val day = days[i] val day = days[i]
val currTextColor = if (day.isThisMonth) textColor else weakTextColor val currTextColor = if (day.isThisMonth) textColor else weakTextColor
@ -126,8 +126,8 @@ class MyWidgetMonthlyProvider : AppWidgetProvider() {
var eventTextColor = backgroundColor.getContrastColor() var eventTextColor = backgroundColor.getContrastColor()
if (!day.isThisMonth || (dimPastEvents && it.isPastEvent)) { if (!day.isThisMonth || (dimPastEvents && it.isPastEvent)) {
eventTextColor = eventTextColor.adjustAlpha(0.25f) eventTextColor = eventTextColor.adjustAlpha(MEDIUM_ALPHA)
backgroundColor = backgroundColor.adjustAlpha(0.25f) backgroundColor = backgroundColor.adjustAlpha(MEDIUM_ALPHA)
} }
val newRemoteView = RemoteViews(packageName, R.layout.day_monthly_event_view).apply { val newRemoteView = RemoteViews(packageName, R.layout.day_monthly_event_view).apply {