Add customisation of the navigation buttons for iOS
This commit is contained in:
@@ -642,11 +642,17 @@
|
||||
self.forwardButton = [[UIBarButtonItem alloc] initWithTitle:frontArrowString style:UIBarButtonItemStylePlain target:self action:@selector(goForward:)];
|
||||
self.forwardButton.enabled = YES;
|
||||
self.forwardButton.imageInsets = UIEdgeInsetsZero;
|
||||
if (_browserOptions.navigationbuttoncolor != nil) { // Set button color if user sets it in options
|
||||
self.forwardButton.tintColor = [self colorFromHexString:_browserOptions.navigationbuttoncolor];
|
||||
}
|
||||
|
||||
NSString* backArrowString = NSLocalizedString(@"◄", nil); // create arrow from Unicode char
|
||||
self.backButton = [[UIBarButtonItem alloc] initWithTitle:backArrowString style:UIBarButtonItemStylePlain target:self action:@selector(goBack:)];
|
||||
self.backButton.enabled = YES;
|
||||
self.backButton.imageInsets = UIEdgeInsetsZero;
|
||||
if (_browserOptions.navigationbuttoncolor != nil) { // Set button color if user sets it in options
|
||||
self.backButton.tintColor = [self colorFromHexString:_browserOptions.navigationbuttoncolor];
|
||||
}
|
||||
|
||||
// Filter out Navigation Buttons if user requests so
|
||||
if (_browserOptions.hidenavigationbuttons) {
|
||||
|
||||
Reference in New Issue
Block a user