Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions KINWebBrowser/KINWebBrowserViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
@property (nonatomic, strong) UIBarButtonItem *actionButton;
@property (nonatomic, strong) UIColor *tintColor;
@property (nonatomic, strong) UIColor *barTintColor;
@property (nonatomic, strong) UIColor *progressViewTintColor;
@property (nonatomic, assign) BOOL actionButtonHidden;
@property (nonatomic, assign) BOOL showsURLInNavigationBar;
@property (nonatomic, assign) BOOL showsPageTitleInNavigationBar;
Expand Down
8 changes: 7 additions & 1 deletion KINWebBrowser/KINWebBrowserViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,16 @@ - (void)loadHTMLString:(NSString *)HTMLString {

- (void)setTintColor:(UIColor *)tintColor {
_tintColor = tintColor;
[self.progressView setTintColor:tintColor];

[self.navigationController.navigationBar setTintColor:tintColor];
[self.navigationController.toolbar setTintColor:tintColor];
}

- (void)setProgressViewTintColor:(UIColor *)progressViewTintColor {
_progressViewTintColor = progressViewTintColor;
[self.progressView setTintColor:progressViewTintColor];
}

- (void)setBarTintColor:(UIColor *)barTintColor {
_barTintColor = barTintColor;
[self.navigationController.navigationBar setBarTintColor:barTintColor];
Expand Down Expand Up @@ -399,6 +404,7 @@ - (void)updateToolbarState {
[self setToolbarItems:barButtonItems animated:YES];

self.tintColor = self.tintColor;
self.progressViewTintColor = self.progressViewTintColor;
self.barTintColor = self.barTintColor;


Expand Down