Commit e64b77c1 authored by Sephiroth87's avatar Sephiroth87 Committed by Felix Paul Kühne
Browse files

Less ugly back button


Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 3cde4906
......@@ -34,13 +34,14 @@
style:UIBarButtonItemStyleBordered
target:target
action:selector];
[backButton setBackgroundImage:[UIImage imageNamed:@"backButton"]
[backButton setBackgroundImage:[[UIImage imageNamed:@"backButton"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 12, 0, 6)]
forState:UIControlStateNormal
barMetrics:UIBarMetricsDefault];
[backButton setBackgroundImage:[UIImage imageNamed:@"backButtonHighlight"]
[backButton setBackgroundImage:[[UIImage imageNamed:@"backButtonHighlight"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 12, 0, 6)]
forState:UIControlStateHighlighted
barMetrics:UIBarMetricsDefault];
[backButton setTitleTextAttributes:@{UITextAttributeTextShadowColor : [UIColor colorWithWhite:0. alpha:.37], UITextAttributeTextColor : [UIColor whiteColor]} forState:UIControlStateNormal];
[backButton setTitlePositionAdjustment:UIOffsetMake(3, 0) forBarMetrics:UIBarMetricsDefault];
return backButton;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment