VLCTrackSelectorHeaderView.m 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*****************************************************************************
  2. * VLCTrackSelectorHeaderView.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 "VLCTrackSelectorHeaderView.h"
  13. #import "UIDevice+VLC.h"
  14. @implementation VLCTrackSelectorHeaderView
  15. - (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier
  16. {
  17. self = [super initWithReuseIdentifier:reuseIdentifier];
  18. if (!self)
  19. return self;
  20. self.contentView.backgroundColor = [UIColor VLCDarkBackgroundColor];
  21. self.textLabel.textColor = [UIColor whiteColor];
  22. if ([[UIDevice currentDevice] VLCSpeedCategory] >= 3) {
  23. self.opaque = NO;
  24. self.alpha = .8;
  25. }
  26. return self;
  27. }
  28. @end