UIColor+Presets.m 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*****************************************************************************
  2. * UIColor+Presets.m
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2014-2015 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Authors: Felix Paul Kühne <fkuehne # videolan org>
  9. *
  10. * Refer to the COPYING file of the official project for license.
  11. *****************************************************************************/
  12. #import "UIColor+Presets.h"
  13. @implementation UIColor (Presets)
  14. + (UIColor *)VLCDarkBackgroundColor
  15. {
  16. return [UIColor colorWithWhite:.122 alpha:1.];
  17. }
  18. + (UIColor *)VLCTransparentDarkBackgroundColor
  19. {
  20. return [UIColor colorWithWhite:.122 alpha:0.75];
  21. }
  22. + (UIColor *)VLCLightTextColor
  23. {
  24. return [UIColor colorWithWhite:.72 alpha:1.];
  25. }
  26. + (UIColor *)VLCDarkTextShadowColor
  27. {
  28. return [UIColor colorWithWhite:0. alpha:.25f];
  29. }
  30. + (UIColor *)VLCMenuBackgroundColor
  31. {
  32. return [UIColor colorWithWhite:.17f alpha:1.];
  33. }
  34. + (UIColor *)VLCOrangeTintColor
  35. {
  36. return [UIColor colorWithRed:1.0f green:(132.0f/255.0f) blue:0.0f alpha:1.f];
  37. }
  38. @end