mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2024-12-24 23:40:54 +01:00
increase the dimmed events alpha on widgets
This commit is contained in:
parent
87b14ea7c4
commit
5ff520c93d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user