summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gardiner <paul.gardiner@artifex.com>2014-04-01 10:56:51 +0100
committerTor Andersson <tor.andersson@artifex.com>2014-04-02 14:22:46 +0200
commit956dfdaff13c32ae2bb3f73dd4ca696ec1166076 (patch)
tree39aaa0edfa1a647b6fbca072472ddd698e5ea97e
parent5ee2c85fb269b97fa5e4d293fc0df2fa03265d7c (diff)
downloadmupdf-956dfdaff13c32ae2bb3f73dd4ca696ec1166076.tar.xz
iOS: in 7.0 and above, allow the system to tint our custom menu buttons
-rw-r--r--platform/ios/Classes/TapImage.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/ios/Classes/TapImage.m b/platform/ios/Classes/TapImage.m
index 09c85189..1a43813e 100644
--- a/platform/ios/Classes/TapImage.m
+++ b/platform/ios/Classes/TapImage.m
@@ -7,6 +7,8 @@ static const NSTimeInterval TapDuration = 0.05;
- (id)initWithResource:(NSString *)resource target:(id)targ action:(SEL)selector
{
UIImage *image = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:resource ofType:@"png"]];
+ if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0)
+ image = [image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
self = [super initWithImage:image];
if (self)
{