Class ThemePicker
- java.lang.Object
-
- de.kaffeemitkoffein.tinyweatherforecastgermany.ThemePicker
-
public final class ThemePicker extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ThemePicker.ThemeColor
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
adaptColorToTheme(Context context, int color)
static void
applyColor(Bitmap bitmap, int color)
static void
applyColor(Context context, Bitmap bitmap, boolean fromWidget)
static void
applyPrecipitationAccentColor(Context context, TextView textView)
static void
applyTemperatureAccentColor(Context context, Weather.WeatherInfo weatherInfo, TextView textView)
static int
getColor(Context context, int color)
static int
getColorPrimary(Context context)
static int
getColorTextLight(Context context)
static int
getPrecipitationAccentColor(Context context)
static int
getRaingridDrawableRessource(Context context)
static int
getTemperatureAccentColor(Context context, Weather.WeatherInfo weatherInfo)
static int
GetTheme(Context context)
static Drawable
getWidgetBackgroundDrawable(Context context)
static int
getWidgetBackgroundDrawableRessource(Context context)
static int
getWidgetTextColor(Context context)
static boolean
isDarkTheme(Context context)
static void
SetTheme(Context context)
static void
tintAlertDialogButtons(Context context, AlertDialog alertDialog)
-
-
-
Method Detail
-
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)
-
-