VLCTrackSelectorTableViewCell.m 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*****************************************************************************
  2. * VLCTrackSelectorTableViewCell.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 "VLCTrackSelectorTableViewCell.h"
  13. @implementation VLCTrackSelectorTableViewCell
  14. - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
  15. {
  16. self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
  17. if (!self)
  18. return self;
  19. return self;
  20. }
  21. - (void)setShowsCurrentTrack:(BOOL)value
  22. {
  23. if (value) {
  24. self.backgroundColor = [UIColor VLCLightTextColor];
  25. self.textLabel.textColor = [UIColor VLCDarkBackgroundColor];
  26. } else {
  27. self.backgroundColor = [UIColor clearColor];
  28. self.textLabel.textColor = [UIColor VLCLightTextColor];
  29. }
  30. }
  31. @end