diff options
-rw-r--r-- | MobileCydia.mm | 8 | ||||
-rw-r--r-- | UICaboodle/BrowserView.mm | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 2fbdaad..5b4dc06 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -4125,6 +4125,8 @@ static NSString *Warning_; return @"setHidesNavigationBar"; else if (selector == @selector(setNavigationBarStyle:)) return @"setNavigationBarStyle"; + else if (selector == @selector(setNavigationBarTintRed:green:blue:alpha:)) + return @"setNavigationBarTintColor"; else if (selector == @selector(setPopupHook:)) return @"setPopupHook"; else if (selector == @selector(setToken:)) @@ -4301,6 +4303,12 @@ static NSString *Warning_; [indirect_ performSelectorOnMainThread:@selector(setNavigationBarStyle:) withObject:value waitUntilDone:NO]; } +- (void) setNavigationBarTintRed:(NSNumber *)red green:(NSNumber *)green blue:(NSNumber *)blue alpha:(NSNumber *)alpha { + float opacity(alpha == (id) [WebUndefined undefined] ? 1 : [alpha floatValue]); + UIColor *color([UIColor colorWithRed:[red floatValue] green:[green floatValue] blue:[blue floatValue] alpha:opacity]); + [indirect_ performSelectorOnMainThread:@selector(setNavigationBarTintColor:) withObject:color waitUntilDone:NO]; +} + - (void) _setToken:(NSString *)token { Token_ = token; diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm index b145048..9b0eda3 100644 --- a/UICaboodle/BrowserView.mm +++ b/UICaboodle/BrowserView.mm @@ -1181,6 +1181,10 @@ static void $UIWebViewWebViewDelegate$webViewClose$(UIWebViewWebViewDelegate *se [[[self navigationController] navigationBar] setBarStyle:style]; } +- (void) setNavigationBarTintColor:(UIColor *)color { + [[[self navigationController] navigationBar] setTintColor:color]; +} + - (void) setHidesBackButton:(bool)value { [[self navigationItem] setHidesBackButton:value]; } |