Browse Source

Local Network: Make the highlighted text in the cells more readable when selected

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Marc Etcheverry 11 years ago
parent
commit
cf6726209d
1 changed files with 9 additions and 0 deletions
  1. 9 0
      Sources/VLCLocalNetworkListCell.m

+ 9 - 0
Sources/VLCLocalNetworkListCell.m

@@ -13,6 +13,8 @@
 
 #import "VLCLocalNetworkListCell.h"
 
+#import "VLCStatusLabel.h"
+
 @implementation VLCLocalNetworkListCell
 
 + (VLCLocalNetworkListCell *)cellWithReuseIdentifier:(NSString *)ident
@@ -31,6 +33,13 @@
     self.subtitleLabel.text = @"";
     self.thumbnailView.contentMode = UIViewContentModeScaleAspectFit;
     self.downloadButton.hidden = YES;
+
+    if (SYSTEM_RUNS_IOS7_OR_LATER) {
+        self.titleLabel.highlightedTextColor = [UIColor blackColor];
+        self.folderTitleLabel.highlightedTextColor = [UIColor blackColor];
+        self.subtitleLabel.highlightedTextColor = [UIColor blackColor];
+        self.statusLabel.highlightedTextColor = [UIColor blackColor];
+    }
 }
 
 - (void)setIsDirectory:(BOOL)isDirectory