소스 검색

Make the cursor for text fields and table view edit selection indicators orange rather than blue

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Marc Etcheverry 11 년 전
부모
커밋
66b0777d29
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 1
      Sources/VLCAppDelegate.m

+ 7 - 1
Sources/VLCAppDelegate.m

@@ -61,9 +61,15 @@
 
 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
 {
-    // For UISearchBar as well
     if (SYSTEM_RUNS_IOS7_OR_LATER) {
+        // Change the keyboard for UISearchBar
         [[UITextField appearance] setKeyboardAppearance:UIKeyboardAppearanceDark];
+        // For the cursor
+        [[UITextField appearance] setTintColor:[UIColor VLCOrangeTintColor]];
+        // Don't override the 'Cancel' button color in the search bar with the previous UITextField call. Use the default blue color
+        [[UIBarButtonItem appearanceWhenContainedIn:[UISearchBar class], nil] setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor colorWithRed:0.0 green:122.0/255.0 blue:1.0 alpha:1.0]} forState:UIControlStateNormal];
+        // For the edit selection indicators
+        [[UITableView appearance] setTintColor:[UIColor VLCOrangeTintColor]];
     }
 
     [[UISwitch appearance] setOnTintColor:[UIColor VLCOrangeTintColor]];