Example #1
0
 private int getPositiveTextColor(ColorScheme colorScheme) {
   if (PreferenceHelper.getGreenTextPreference(context)) {
     return colorScheme.getGreenPositiveColorResId();
   } else {
     return colorScheme.getPositiveColorResId();
   }
 }
Example #2
0
 public void setNewColorScheme(ColorScheme colorScheme) {
   positiveTextColor = getPositiveTextColor(colorScheme);
   negativeTextColor = colorScheme.getNegativeColorResId();
   borderDrawableResId = colorScheme.getBorderDrawableResId();
   borderDrawable = null;
 }