Fix: Fixed some widget elements colors.
Signed-off-by: HeCodes2Much <wayne6324@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user