Sfoglia il codice sorgente

Fix text color set for themed back button

Felix Paul Kühne 12 anni fa
parent
commit
bad3ae2121
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1 2
      AspenProject/UIBarButtonItem+Theme.m

+ 1 - 2
AspenProject/UIBarButtonItem+Theme.m

@@ -40,8 +40,7 @@
     [backButton setBackgroundImage:[UIImage imageNamed:@"backButtonHighlight"]
                           forState:UIControlStateHighlighted
                         barMetrics:UIBarMetricsDefault];
-    [backButton setTitleTextAttributes:@{UITextAttributeTextShadowColor : [UIColor whiteColor], UITextAttributeTextColor : [UIColor blackColor]}
-                              forState:UIControlStateNormal];
+    [backButton setTitleTextAttributes:@{UITextAttributeTextShadowColor : [UIColor colorWithWhite:0. alpha:.37], UITextAttributeTextColor : [UIColor whiteColor]} forState:UIControlStateNormal];
     return backButton;
 }