Created
June 7, 2016 17:04
-
-
Save bdalziel/9e3757b3b55a9ff96b097ae367d607ba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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