Widget background
xmha97 opened this issue · 1 comments
xmha97 commented
Hi, please use the Google Calendar background for Prognoza widget.
As you can see, the color of the widget is different.
You can see the codes of the "Persian Calendar" app:
https://github.com/persian-calendar/persian-calendar
val backgroundColor =
if (prefersWidgetsDynamicColors) context.getColor(
if (isNightMode) android.R.color.system_accent2_800
else android.R.color.system_accent2_50
)
else null
val foregroundColor =
if (prefersWidgetsDynamicColors) context.getColor(
if (isNightMode) android.R.color.system_accent1_50
else android.R.color.system_accent1_600
)
else null
Thanks 🙏
xmha97 commented
cc: @davidtakac @linux2good