Skip to content

Instantly share code, notes, and snippets.

@bdalziel
Created June 7, 2016 17:04
Show Gist options
  • Save bdalziel/9e3757b3b55a9ff96b097ae367d607ba to your computer and use it in GitHub Desktop.
Save bdalziel/9e3757b3b55a9ff96b097ae367d607ba to your computer and use it in GitHub Desktop.
class func uiColor(appUIColor: AppUIColors) -> UIColor {
switch appUIColor {
case .NavBarBackground,
.ViewControllerBackground: // References to color abbreviated
return color(AppColors.Beige)
case .ButtonTitleSelected,
.ButtonTitleHighlighted: // References to color abbreviated
return colorWithAlpha(AppColors.Beige, alpha: 0.7)
case .NavBarShadow,
.TableSeparator: // References to color abbreviated
return color(AppColors.Gold)
case .TabBarShadow,
.TableCellSelectedBackground: // References to color abbreviated
return color(AppColors.GoldAlt)
case .NavBarTint,
.PickerNavBarTint: // References to color abbreviated
return color(AppColors.FMLRed)
case .BarButtonTitleHighlighted,
.BarButtonTitleSelected: // References to color abbreviated
return colorWithAlpha(AppColors.FMLRed, alpha: 0.7)
case .PickerScreensBackground,
.PickerNavBarBackground: // References to color abbreviated
return color(AppColors.BlackVelvet)
case .LaunchBackground,
.PickerAvailableMoviesBackground: // References to color abbreviated
return color(AppColors.DarkVelvet)
case .TabBarTint,
.CineplexScreenBorderUnavailable: // References to color abbreviated
return color(AppColors.Velvet)
case .ToolTipButtonBackground :
return color(AppColors.FMLRedAlt)
case .LaunchGradientTop :
return colorWithAlpha(AppColors.BlackVelvet, alpha: 0.0)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment