java.lang.Object
de.kaffeemitkoffein.tinyweatherforecastgermany.ThemePicker

public final class ThemePicker extends Object
  • Method Details

    • isDarkTheme

      public static boolean isDarkTheme(Context context)
    • GetTheme

      public static int GetTheme(Context context)
    • SetTheme

      public static void SetTheme(Context context)
    • getWidgetTextColor

      public static int getWidgetTextColor(Context context)
    • getColorTextLight

      public static int getColorTextLight(Context context)
    • getColorPrimary

      public static int getColorPrimary(Context context)
    • getColor

      public static int getColor(Context context, int color)
    • getWidgetBackgroundDrawableRessource

      public static int getWidgetBackgroundDrawableRessource(Context context)
    • getRaingridDrawableRessource

      public static int getRaingridDrawableRessource(Context context)
    • getWidgetBackgroundDrawable

      public static Drawable getWidgetBackgroundDrawable(Context context)
    • adaptColorToTheme

      public static int adaptColorToTheme(Context context, int color)
    • applyColor

      public static void applyColor(Bitmap bitmap, int color)
    • applyColor

      public static void applyColor(Context context, Bitmap bitmap, boolean fromWidget)
    • getTemperatureAccentColor

      public static int getTemperatureAccentColor(Context context, Weather.WeatherInfo weatherInfo)
    • applyTemperatureAccentColor

      public static void applyTemperatureAccentColor(Context context, Weather.WeatherInfo weatherInfo, TextView textView)
    • getPrecipitationAccentColor

      public static int getPrecipitationAccentColor(Context context)
    • applyPrecipitationAccentColor

      public static void applyPrecipitationAccentColor(Context context, TextView textView)
    • tintAlertDialogButtons

      public static void tintAlertDialogButtons(Context context, AlertDialog alertDialog)