Skip to content

Instantly share code, notes, and snippets.

@luizmarcus
Created February 23, 2016 01:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luizmarcus/87e69da2b556bfbf6192 to your computer and use it in GitHub Desktop.
Save luizmarcus/87e69da2b556bfbf6192 to your computer and use it in GitHub Desktop.
if (vibrantSwatch!=null) {
vibrant.setBackgroundColor(vibrantSwatch.getRgb());
vibrantText.setTextColor(vibrantSwatch.getTitleTextColor());
vibrantText.setText("Vibrant");
}
if (vibrantSwatchDark!=null) {
vibrantDark.setBackgroundColor(vibrantSwatchDark.getRgb());
vibrantDarkText.setTextColor(vibrantSwatchDark.getTitleTextColor());
vibrantDarkText.setText("Vibrant Dark");
}
if (vibrantSwatchLight!=null) {
vibrantLight.setBackgroundColor(vibrantSwatchLight.getRgb());
vibrantLightText.setTextColor(vibrantSwatchLight.getTitleTextColor());
vibrantLightText.setText("Vibrant Light");
}
if (mutedSwatch!=null) {
muted.setBackgroundColor(mutedSwatch.getRgb());
mutedText.setTextColor(mutedSwatch.getTitleTextColor());
mutedText.setText("Muted");
}
if (mutedSwatchLight!=null) {
mutedLight.setBackgroundColor(mutedSwatchLight.getRgb());
mutedLightText.setTextColor(mutedSwatchLight.getTitleTextColor());
mutedLightText.setText("Muted Light");
}
if(mutedSwatchDark!=null) {
mutedDark.setBackgroundColor(mutedSwatchDark.getRgb());
mutedDarkText.setTextColor(mutedSwatchDark.getTitleTextColor());
mutedDarkText.setText("Muted Dark");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment