UIColor+Presets.m 921 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*****************************************************************************
  2. * UIColor+Presets.m
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2014 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 *)VLCLightTextColor
  19. {
  20. return [UIColor colorWithWhite:.72 alpha:1.];
  21. }
  22. + (UIColor *)VLCDarkTextShadowColor
  23. {
  24. return [UIColor colorWithWhite:0. alpha:.25f];
  25. }
  26. + (UIColor *)VLCOrangeTintColor
  27. {
  28. return [UIColor colorWithRed:1.0f green:(132.0f/255.0f) blue:0.0f alpha:1.f];
  29. }
  30. @end