summaryrefslogtreecommitdiff
path: root/CyteKit/WebViewController.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2013-12-23 15:02:25 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2013-12-23 15:02:25 -0800
commit5738f070516b40d0ae4e0ebb570ec86449b4ad60 (patch)
treecd33940259464da363116ce3d5f7460f0656775b /CyteKit/WebViewController.mm
parent024cdbbf598b87c39598cbe17e9a0c04a0e09974 (diff)
Carry bgcolor over to the next WebViewController.
Diffstat (limited to 'CyteKit/WebViewController.mm')
-rw-r--r--CyteKit/WebViewController.mm13
1 files changed, 12 insertions, 1 deletions
diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm
index f853710..f5ec060 100644
--- a/CyteKit/WebViewController.mm
+++ b/CyteKit/WebViewController.mm
@@ -418,6 +418,7 @@ float CYScrollViewDecelerationRateNormal;
if (page == nil) {
CyteWebViewController *browser([[[class_ alloc] init] autorelease]);
+ [browser setColor:color_];
[browser setRequest:request];
page = browser;
}
@@ -587,6 +588,10 @@ float CYScrollViewDecelerationRateNormal;
}
}
+ if (uic == nil)
+ uic = [UIColor groupTableViewBackgroundColor];
+
+ color_ = uic;
[scroller_ setBackgroundColor:uic];
break;
}
@@ -833,6 +838,8 @@ float CYScrollViewDecelerationRateNormal;
width_ = width;
class_ = _class;
+ color_ = [UIColor groupTableViewBackgroundColor];
+
allowsNavigationAction_ = true;
loading_ = [NSMutableSet setWithCapacity:5];
@@ -950,7 +957,7 @@ float CYScrollViewDecelerationRateNormal;
}
[scroller_ setFixedBackgroundPattern:YES];
- [scroller_ setBackgroundColor:[UIColor groupTableViewBackgroundColor]];
+ [scroller_ setBackgroundColor:color_];
[scroller_ setClipsSubviews:YES];
[scroller_ setBounces:YES];
@@ -993,6 +1000,10 @@ float CYScrollViewDecelerationRateNormal;
} return self;
}
+- (void) setColor:(UIColor *)color {
+ color_ = color;
+}
+
- (void) callFunction:(WebScriptObject *)function {
WebThreadLocked lock;