From 6c2cd0101573f19b859554f665f58e91a9ec1640 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Tue, 2 Sep 2014 23:19:34 -0400 Subject: [PATCH] Prettier password cells. --- External/UbiquityStoreManager | 2 +- MasterPassword/ObjC/iOS/MPPasswordCell.m | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/External/UbiquityStoreManager b/External/UbiquityStoreManager index 99dcbcce..34927492 160000 --- a/External/UbiquityStoreManager +++ b/External/UbiquityStoreManager @@ -1 +1 @@ -Subproject commit 99dcbccee742d2bd2e5701f6b4e001138956030a +Subproject commit 349274921474e16c2bee9d7bc838141f5f89aefc diff --git a/MasterPassword/ObjC/iOS/MPPasswordCell.m b/MasterPassword/ObjC/iOS/MPPasswordCell.m index 78403784..c325d65e 100644 --- a/MasterPassword/ObjC/iOS/MPPasswordCell.m +++ b/MasterPassword/ObjC/iOS/MPPasswordCell.m @@ -57,11 +57,21 @@ [self.counterButton addGestureRecognizer: [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector( doResetCounter: )]]; - self.selectionButton.layer.cornerRadius = 5; + self.selectionButton.layer.cornerRadius = 4; self.selectionButton.layer.shadowOffset = CGSizeZero; self.selectionButton.layer.shadowRadius = 5; self.selectionButton.layer.shadowOpacity = 0; self.selectionButton.layer.shadowColor = [UIColor whiteColor].CGColor; + self.selectionButton.layer.borderWidth = 1; + self.selectionButton.layer.borderColor = [UIColor colorWithWhite:0.15f alpha:0.6f].CGColor; + self.contentView.layer.shadowRadius = 5; + self.contentView.layer.shadowOpacity = 1; + self.contentView.layer.shadowColor = [UIColor colorWithWhite:0 alpha:0.6f].CGColor; + self.contentView.layer.shadowPath = [UIBezierPath bezierPathWithRoundedRect:self.contentView.bounds cornerRadius:4].CGPath; + self.contentView.layer.masksToBounds = NO; + self.contentView.clipsToBounds = NO; + self.layer.masksToBounds = NO; + self.clipsToBounds = NO; self.pageControl.transform = CGAffineTransformMakeScale( 0.4f, 0.4f );