Fix: Fixed some widget elements colors.

Signed-off-by: HeCodes2Much <wayne6324@gmail.com>
This commit is contained in:
HeCodes2Much
2024-06-09 09:03:18 +01:00
parent 1cc7155d68
commit 581b142b43

View File

@@ -124,6 +124,7 @@ class WidgetFragment : Fragment(),
val weatherIcon = createWeatherIcon(context, setWeatherIcon(context, weatherResponse.weather[0].id))
binding.weatherIcon.setImageBitmap(weatherIcon)
binding.weatherIcon.setColorFilter(preferenceHelper.widgetTextColor)
val weatherWidgetDrawable = binding.weatherRoot.background
if (weatherWidgetDrawable is GradientDrawable) {
@@ -184,6 +185,7 @@ class WidgetFragment : Fragment(),
private fun setupBatteryWidget() {
try {
binding.batteryLevel.setTextColor(preferenceHelper.widgetTextColor)
binding.batteryCount.setTextColor(preferenceHelper.widgetTextColor)
binding.chargingStatus.setTextColor(preferenceHelper.widgetTextColor)
binding.batteryHealth.setTextColor(preferenceHelper.widgetTextColor)
binding.batteryVoltage.setTextColor(preferenceHelper.widgetTextColor)