Marino Faggiana 8 years ago
parent
commit
363ff44212
1 changed files with 4 additions and 1 deletions
  1. 4 1
      iOSClient/Utility/CCGraphics.m

+ 4 - 1
iOSClient/Utility/CCGraphics.m

@@ -243,16 +243,19 @@
     if (width < 80)
         width = 80;
     label.text =  [title stringByTruncatingToWidth:width withFont:label.font atEnd:YES];
+    label.textColor = COLOR_NAVIGATIONBAR_TEXT;
     
     label.textAlignment = NSTextAlignmentCenter;
     [label sizeToFit];
     label.center = view.center;
     
+    image = [image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
     UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
     float imageAspect = imageView.image.size.width / imageView.image.size.height;
     imageView.frame = CGRectMake(label.frame.origin.x-label.frame.size.height*imageAspect, label.frame.origin.y, label.frame.size.height*imageAspect, label.frame.size.height);
     imageView.contentMode = UIViewContentModeScaleAspectFit;
-    
+    imageView.tintColor = COLOR_NAVIGATIONBAR_TEXT;
+
     [view addSubview:label];
     [view addSubview:imageView];