]> git.saurik.com Git - cydia.git/commitdiff
Fixed cancel button sizing; blackified dropbar.
authorGrant Paul <chpwn@chpwn.com>
Fri, 3 Dec 2010 01:19:18 +0000 (17:19 -0800)
committerGrant Paul <chpwn@chpwn.com>
Fri, 3 Dec 2010 01:19:18 +0000 (17:19 -0800)
MobileCydia.mm

index 196b9c02cc45123a9212a6a1f6cbbddfe8707c5b..4750c1072c484d4d0088bf346f0be0b390bfd93d 100644 (file)
@@ -6544,6 +6544,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
 
 - (void) positionViews {
     CGRect frame = [cancel_ frame];
+    frame.size = [cancel_ sizeThatFits:frame.size];
     frame.origin.x = [self frame].size.width - frame.size.width - 5;
     frame.origin.y = ([self frame].size.height - frame.size.height) / 2;
     [cancel_ setFrame:frame];
@@ -6578,7 +6579,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
     if ((self = [super initWithFrame:frame])) {
         [self setAutoresizingMask:UIViewAutoresizingFlexibleWidth];
 
-        [self setTintColor:[UIColor colorWithRed:0.23 green:0.23 blue:0.23 alpha:1]];
         [self setBarStyle:UIBarStyleBlack];
 
         UIBarStyle barstyle([self _barStyle:NO]);