diff --git a/ios/iosremote/UIView+Shadowing.h b/ios/iosremote/UIView+Shadowing.h new file mode 100644 index 000000000000..223c4fd0b5ef --- /dev/null +++ b/ios/iosremote/UIView+Shadowing.h @@ -0,0 +1,15 @@ +// +// UIView+Shadowing.h +// iosremote +// +// Created by Siqi Liu on 9/6/13. +// Copyright (c) 2013 libreoffice. All rights reserved. +// + +#import + +@interface UIView (Shadowing) + +- (void) setShadow; + +@end diff --git a/ios/iosremote/UIView+Shadowing.m b/ios/iosremote/UIView+Shadowing.m new file mode 100644 index 000000000000..343063c2c88c --- /dev/null +++ b/ios/iosremote/UIView+Shadowing.m @@ -0,0 +1,24 @@ +// +// UIView+Shadowing.m +// iosremote +// +// Created by Siqi Liu on 9/6/13. +// Copyright (c) 2013 libreoffice. All rights reserved. +// + +#import "UIView+Shadowing.h" +#import + +@implementation UIView (Shadowing) + +- (void) setShadow +{ + self.layer.shadowColor = [[UIColor blackColor] CGColor]; + self.layer.shadowOpacity = 0.5; + self.layer.shadowRadius = 4.0; + self.layer.shadowOffset = CGSizeMake(3.0f, 3.0f); + self.layer.shadowPath = [UIBezierPath bezierPathWithRect:self.bounds].CGPath; + self.clipsToBounds = NO; +} + +@end diff --git a/ios/iosremote/iosremote.xcodeproj/project.pbxproj b/ios/iosremote/iosremote.xcodeproj/project.pbxproj index 45e36b5ce345..cc25b6c10d45 100644 --- a/ios/iosremote/iosremote.xcodeproj/project.pbxproj +++ b/ios/iosremote/iosremote.xcodeproj/project.pbxproj @@ -44,7 +44,6 @@ 57C6E430175E076900E8BC5F /* CommandInterpreter.m in Sources */ = {isa = PBXBuildFile; fileRef = 57C6E42B175E076900E8BC5F /* CommandInterpreter.m */; }; 57C6E431175E076900E8BC5F /* Server.m in Sources */ = {isa = PBXBuildFile; fileRef = 57C6E42D175E076900E8BC5F /* Server.m */; }; 57CC48C6178B42A400075DE4 /* timer_pause_btn.png in Resources */ = {isa = PBXBuildFile; fileRef = 57CC48C4178B42A400075DE4 /* timer_pause_btn.png */; }; - 57CC48C7178B42A400075DE4 /* timer_resume_btn.png in Resources */ = {isa = PBXBuildFile; fileRef = 57CC48C5178B42A400075DE4 /* timer_resume_btn.png */; }; 57CFED9917838FDC00E82E05 /* EditableTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 57CFED9817838FDC00E82E05 /* EditableTableViewCell.m */; }; 57DC7007178D84490050FC58 /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 57DC7006178D84490050FC58 /* CoreMotion.framework */; }; 57DC7012178E16A40050FC58 /* UIViewTransitionCategory.m in Sources */ = {isa = PBXBuildFile; fileRef = 57DC7011178E16A40050FC58 /* UIViewTransitionCategory.m */; }; @@ -88,6 +87,7 @@ 8C1A16FD17A2853700B4BB3C /* iosremote_iphone_icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 8C1A16FC17A2853700B4BB3C /* iosremote_iphone_icon.png */; }; 8C1A16FF17A2853F00B4BB3C /* iosremote_ipad_icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 8C1A16FE17A2853F00B4BB3C /* iosremote_ipad_icon.png */; }; 8C1A170117A2854300B4BB3C /* iosremote_ipad_icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8C1A170017A2854300B4BB3C /* iosremote_ipad_icon@2x.png */; }; + 8C23B46917DA158C00FB4DE6 /* UIView+Shadowing.m in Sources */ = {isa = PBXBuildFile; fileRef = 8C23B46817DA158C00FB4DE6 /* UIView+Shadowing.m */; }; 8C26E5C617A5539D007DA4B7 /* UserDefaults.plist in Resources */ = {isa = PBXBuildFile; fileRef = 8C26E5C517A5539D007DA4B7 /* UserDefaults.plist */; }; 8C26E5C917A5731D007DA4B7 /* autoDismissKeyboardNavigationViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8C26E5C817A5731D007DA4B7 /* autoDismissKeyboardNavigationViewController.m */; }; 8C26E5D017A58703007DA4B7 /* HorizontalSlideCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 8C26E5CF17A58703007DA4B7 /* HorizontalSlideCell.m */; }; @@ -179,7 +179,6 @@ 57C6E42C175E076900E8BC5F /* Server.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Server.h; path = iosremote/Communication/Server.h; sourceTree = ""; }; 57C6E42D175E076900E8BC5F /* Server.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Server.m; path = iosremote/Communication/Server.m; sourceTree = ""; }; 57CC48C4178B42A400075DE4 /* timer_pause_btn.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = timer_pause_btn.png; path = iosremote/timer_pause_btn.png; sourceTree = ""; }; - 57CC48C5178B42A400075DE4 /* timer_resume_btn.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = timer_resume_btn.png; path = iosremote/timer_resume_btn.png; sourceTree = ""; }; 57CFED9717838FDC00E82E05 /* EditableTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = EditableTableViewCell.h; path = iosremote/EditableTableViewCell.h; sourceTree = ""; }; 57CFED9817838FDC00E82E05 /* EditableTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = EditableTableViewCell.m; path = iosremote/EditableTableViewCell.m; sourceTree = ""; }; 57DC7006178D84490050FC58 /* CoreMotion.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMotion.framework; path = System/Library/Frameworks/CoreMotion.framework; sourceTree = SDKROOT; }; @@ -242,6 +241,8 @@ 8C1A16FC17A2853700B4BB3C /* iosremote_iphone_icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = iosremote_iphone_icon.png; sourceTree = ""; }; 8C1A16FE17A2853F00B4BB3C /* iosremote_ipad_icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = iosremote_ipad_icon.png; sourceTree = ""; }; 8C1A170017A2854300B4BB3C /* iosremote_ipad_icon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "iosremote_ipad_icon@2x.png"; sourceTree = ""; }; + 8C23B46717DA158C00FB4DE6 /* UIView+Shadowing.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIView+Shadowing.h"; sourceTree = ""; }; + 8C23B46817DA158C00FB4DE6 /* UIView+Shadowing.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIView+Shadowing.m"; sourceTree = ""; }; 8C26E5BE17A525FC007DA4B7 /* MGSplitCornersView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MGSplitCornersView.h; sourceTree = ""; }; 8C26E5BF17A525FC007DA4B7 /* MGSplitCornersView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MGSplitCornersView.m; sourceTree = ""; }; 8C26E5C017A525FC007DA4B7 /* MGSplitDividerView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MGSplitDividerView.h; sourceTree = ""; }; @@ -465,7 +466,6 @@ 8C1A16FC17A2853700B4BB3C /* iosremote_iphone_icon.png */, 8C1A16FA17A2853100B4BB3C /* iosremote_iphone_icon@2x.png */, 57CC48C4178B42A400075DE4 /* timer_pause_btn.png */, - 57CC48C5178B42A400075DE4 /* timer_resume_btn.png */, 571BFAD0178AADA200EF1BDB /* more_icon.png */, 57AEEDB417899BB4007F4F97 /* slide_finished.png */, 57AEEDB017895BF5007F4F97 /* pointer_pushed.png */, @@ -569,6 +569,8 @@ 8C26E5CF17A58703007DA4B7 /* HorizontalSlideCell.m */, 8C0323A917A943720037432E /* UIImageView+setImageAnimated.h */, 8C0323AA17A943720037432E /* UIImageView+setImageAnimated.m */, + 8C23B46717DA158C00FB4DE6 /* UIView+Shadowing.h */, + 8C23B46817DA158C00FB4DE6 /* UIView+Shadowing.m */, 8C19F42917B04EC6005BDB61 /* UINavigationController+Theme.h */, 8C19F42A17B04EC6005BDB61 /* UINavigationController+Theme.m */, 8C19F42D17B05089005BDB61 /* LibONavigationController.h */, @@ -613,12 +615,20 @@ 8C1A170917A28E6500B4BB3C /* iPhone */ = { isa = PBXGroup; children = ( + 8C23B46217DA03D700FB4DE6 /* Views */, 8CAD658917A2F00500CFB661 /* Controllers */, 57DF0A83178FFFAB008B2D3D /* iPhone_autosize.storyboard */, ); name = iPhone; sourceTree = ""; }; + 8C23B46217DA03D700FB4DE6 /* Views */ = { + isa = PBXGroup; + children = ( + ); + name = Views; + sourceTree = ""; + }; 8C26E5C417A52607007DA4B7 /* MGSplitViewController */ = { isa = PBXGroup; children = ( @@ -742,7 +752,6 @@ 571D4807178B2F080063D93B /* timer_clear_btn.png in Resources */, 571D4808178B2F080063D93B /* timer_start_btn.png in Resources */, 57CC48C6178B42A400075DE4 /* timer_pause_btn.png in Resources */, - 57CC48C7178B42A400075DE4 /* timer_resume_btn.png in Resources */, 57DF0A85178FFFAB008B2D3D /* iPhone_autosize.storyboard in Resources */, 5711026D1794127E007D343B /* README.md in Resources */, 5711026E1794127E007D343B /* release_notes.md in Resources */, @@ -858,6 +867,7 @@ 8C19F43617B10D49005BDB61 /* UIViewController+LibOStyling.m in Sources */, 8CD6EC6817CBBAF40071827A /* WalkThroughPageViewController.m in Sources */, 8CD6EC7017CC3FA00071827A /* WalkThroughContainerViewController.m in Sources */, + 8C23B46917DA158C00FB4DE6 /* UIView+Shadowing.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/ios/iosremote/iosremote/Timer.h b/ios/iosremote/iosremote/Timer.h new file mode 100644 index 000000000000..9ed22c5bb12b --- /dev/null +++ b/ios/iosremote/iosremote/Timer.h @@ -0,0 +1,13 @@ +// +// Timer.h +// iosremote +// +// Created by Siqi Liu on 9/7/13. +// Copyright (c) 2013 libreoffice. All rights reserved. +// + +#import + +@interface Timer : NSObject + +@end diff --git a/ios/iosremote/iosremote/Timer.m b/ios/iosremote/iosremote/Timer.m new file mode 100644 index 000000000000..af1ad023ce81 --- /dev/null +++ b/ios/iosremote/iosremote/Timer.m @@ -0,0 +1,13 @@ +// +// Timer.m +// iosremote +// +// Created by Siqi Liu on 9/7/13. +// Copyright (c) 2013 libreoffice. All rights reserved. +// + +#import "Timer.h" + +@implementation Timer + +@end diff --git a/ios/iosremote/iosremote/TimerCountdownTimePicker.h b/ios/iosremote/iosremote/TimerCountdownTimePicker.h new file mode 100644 index 000000000000..b9853c798464 --- /dev/null +++ b/ios/iosremote/iosremote/TimerCountdownTimePicker.h @@ -0,0 +1,13 @@ +// +// TimerCountdownTimePicker.h +// iosremote +// +// Created by Siqi Liu on 9/7/13. +// Copyright (c) 2013 libreoffice. All rights reserved. +// + +#import + +@interface TimerCountdownTimePicker : UIView + +@end diff --git a/ios/iosremote/iosremote/TimerCountdownTimePicker.m b/ios/iosremote/iosremote/TimerCountdownTimePicker.m new file mode 100644 index 000000000000..d35757959301 --- /dev/null +++ b/ios/iosremote/iosremote/TimerCountdownTimePicker.m @@ -0,0 +1,31 @@ +// +// TimerCountdownTimePicker.m +// iosremote +// +// Created by Siqi Liu on 9/7/13. +// Copyright (c) 2013 libreoffice. All rights reserved. +// + +#import "TimerCountdownTimePicker.h" + +@implementation TimerCountdownTimePicker + +- (id)initWithFrame:(CGRect)frame +{ + self = [super initWithFrame:frame]; + if (self) { + // Initialization code + } + return self; +} + +/* +// Only override drawRect: if you perform custom drawing. +// An empty implementation adversely affects performance during animation. +- (void)drawRect:(CGRect)rect +{ + // Drawing code +} +*/ + +@end diff --git a/ios/iosremote/iosremote/UIImageView+setImageAnimated.m b/ios/iosremote/iosremote/UIImageView+setImageAnimated.m index 47692f787970..ca163df48211 100644 --- a/ios/iosremote/iosremote/UIImageView+setImageAnimated.m +++ b/ios/iosremote/iosremote/UIImageView+setImageAnimated.m @@ -27,5 +27,4 @@ { [self setImage:image animated:animated Duration:0.5]; } - @end diff --git a/ios/iosremote/iosremote/en.lproj/iPhone_autoSize.storyboard b/ios/iosremote/iosremote/en.lproj/iPhone_autoSize.storyboard index 3dcb3a137054..dd2302514dfc 100644 --- a/ios/iosremote/iosremote/en.lproj/iPhone_autoSize.storyboard +++ b/ios/iosremote/iosremote/en.lproj/iPhone_autoSize.storyboard @@ -194,51 +194,109 @@ + - - + + - + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + diff --git a/ios/iosremote/iosremote/en.lproj/iPhone_autoSize.strings b/ios/iosremote/iosremote/en.lproj/iPhone_autoSize.strings index 35bb01a86844..8f60258ce29e 100644 Binary files a/ios/iosremote/iosremote/en.lproj/iPhone_autoSize.strings and b/ios/iosremote/iosremote/en.lproj/iPhone_autoSize.strings differ diff --git a/ios/iosremote/iosremote/en.lproj/iPhone_autoSize_old.storyboard b/ios/iosremote/iosremote/en.lproj/iPhone_autoSize_old.storyboard index 3dcb3a137054..6e238d7d8d27 100644 --- a/ios/iosremote/iosremote/en.lproj/iPhone_autoSize_old.storyboard +++ b/ios/iosremote/iosremote/en.lproj/iPhone_autoSize_old.storyboard @@ -194,51 +194,109 @@ + - - + + - + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -537,76 +595,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ios/iosremote/iosremote/fr.lproj/iPhone_autoSize.storyboard b/ios/iosremote/iosremote/fr.lproj/iPhone_autoSize.storyboard index 3415ad743c4c..720e3ed866da 100644 --- a/ios/iosremote/iosremote/fr.lproj/iPhone_autoSize.storyboard +++ b/ios/iosremote/iosremote/fr.lproj/iPhone_autoSize.storyboard @@ -196,51 +196,109 @@ ContrĂ´le Distant + - - + + - + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -539,76 +597,6 @@ ContrĂ´le Distant - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ios/iosremote/iosremote/fr.lproj/iPhone_autoSize_old.storyboard b/ios/iosremote/iosremote/fr.lproj/iPhone_autoSize_old.storyboard index 3415ad743c4c..720e3ed866da 100644 --- a/ios/iosremote/iosremote/fr.lproj/iPhone_autoSize_old.storyboard +++ b/ios/iosremote/iosremote/fr.lproj/iPhone_autoSize_old.storyboard @@ -196,51 +196,109 @@ ContrĂ´le Distant + - - + + - + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -539,76 +597,6 @@ ContrĂ´le Distant - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ios/iosremote/iosremote/slideShowSwipeInList_iphone.m b/ios/iosremote/iosremote/slideShowSwipeInList_iphone.m index a4031c7587f0..bc405780288a 100644 --- a/ios/iosremote/iosremote/slideShowSwipeInList_iphone.m +++ b/ios/iosremote/iosremote/slideShowSwipeInList_iphone.m @@ -15,22 +15,28 @@ #import "slideShowPreviewTable_vc.h" #import "ControlVariables.h" #import "stopWatch.h" +#import "UIImageView+setImageAnimated.h" +#import "UIView+Shadowing.h" #import +#import -@interface slideShowSwipeInList () +@interface slideShowSwipeInList () @property (nonatomic, strong) CommunicationManager *comManager; @property (nonatomic, strong) SlideShow *slideshow; +@property NSInteger currentPage; @end @implementation slideShowSwipeInList @synthesize comManager = _comManager; +@synthesize currentPage = _currentPage; @synthesize slideshow = _slideshow; dispatch_queue_t backgroundQueue; + - (void) viewDidLoad { [super viewDidLoad]; @@ -40,6 +46,8 @@ dispatch_queue_t backgroundQueue; self.slideshow.secondaryDelegate = self; self.clearsSelectionOnViewWillAppear = NO; + // set stopwatch as default, users may swipe for a timer + self.currentPage = 0; self.stopWatch = [[stopWatch alloc] init]; if ([[NSUserDefaults standardUserDefaults] boolForKey:KEY_TIMER]) { @@ -114,7 +122,16 @@ dispatch_queue_t backgroundQueue; NSString *sectionTitle; switch (section) { case 0: - sectionTitle = NSLocalizedString(@"Stop Watch", @"Sidebar section header"); + switch (self.currentPage) { + case 0: + sectionTitle = NSLocalizedString(@"Stop Watch", @"Sidebar section header"); + break; + case 1: + sectionTitle = NSLocalizedString(@"Timer", @"Sidebar section header"); + break; + default: + break; + } break; case 1: sectionTitle = NSLocalizedString(@"Slides", @"Sidebar section header"); @@ -132,8 +149,22 @@ dispatch_queue_t backgroundQueue; // Create header view and add label as a subview UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 23)]; view.backgroundColor = [UIColor colorWithRed:1.0 green:0.662745098 blue:0.074509804 alpha:0.9]; + [view addSubview:label]; + if (section == 0) + { + UIPageControl * pageControl = [[UIPageControl alloc] initWithFrame:CGRectMake(self.revealViewController.rearViewRevealWidth - 20, view.frame.origin.y + 3, 40, 20)]; + pageControl.numberOfPages = 2; + pageControl.currentPage = self.currentPage; + pageControl.currentPageIndicatorTintColor = [UIColor whiteColor]; + pageControl.pageIndicatorTintColor = [UIColor lightGrayColor]; + pageControl.tag = -100; + view.tag = -99; + label.tag = -98; + [view addSubview:pageControl]; + } + return view; } @@ -149,7 +180,20 @@ dispatch_queue_t backgroundQueue; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier: CellIdentifier]; [cell setSelectionStyle:UITableViewCellSelectionStyleNone]; - cell.contentView.backgroundColor = [UIColor whiteColor]; + UIView * view = [cell viewWithTag:8]; + [view.layer setCornerRadius:5.0f]; + view.layer.masksToBounds = YES; + view.clipsToBounds = YES; + [view setShadow]; + + view = [cell viewWithTag:9]; + [view.layer setCornerRadius:5.0f]; + view.layer.masksToBounds = YES; + view.clipsToBounds = YES; + [view setShadow]; + + UIScrollView * scroll = (UIScrollView *) [cell viewWithTag:7]; + scroll.contentSize = CGSizeMake(417,120); return cell; } else { static NSString *CellIdentifier = @"slide"; @@ -163,12 +207,9 @@ dispatch_queue_t backgroundQueue; [self.slideshow getContentAtIndex:indexPath.row forView:cell]; [slideNumber setText:[NSString stringWithFormat:@"%u", indexPath.row+1]]; - image.layer.shadowColor = [[UIColor blackColor] CGColor]; - image.layer.shadowOpacity = 0.5; - image.layer.shadowRadius = 4.0; - image.layer.shadowOffset = CGSizeMake(3.0f, 3.0f); - image.layer.shadowPath = [UIBezierPath bezierPathWithRect:image.bounds].CGPath; - image.clipsToBounds = NO; + [image setShadow]; + + cell.contentView.backgroundColor = [UIColor colorWithRed:.674509804-0.02 * indexPath.row green:.729411765-0.02 * indexPath.row blue:.760784314-0.02 * indexPath.row alpha:1.0]; return cell; } @@ -193,10 +234,42 @@ dispatch_queue_t backgroundQueue; [self.revealViewController revealToggle: self]; } - - (void)viewDidUnload { [self setStopWatch:nil]; [super viewDidUnload]; } +#pragma mark scrollview delegate + +- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView +{ + if (scrollView.tag == 7) { + CGFloat pageWidth = scrollView.frame.size.width; + float fractionalPage = scrollView.contentOffset.x / pageWidth; + NSInteger page = lround(fractionalPage); + if (self.currentPage != page) { + UIPageControl * pageControl = (UIPageControl *) ([[self.tableView viewWithTag:-99] viewWithTag:-100]); + UILabel * label = (UILabel *) ([[self.tableView viewWithTag:-99] viewWithTag:-98]); + + CATransition *animation = [CATransition animation]; + animation.duration = 0.5; + animation.type = kCATransitionMoveIn; + animation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionDefault]; + [label.layer addAnimation:animation forKey:@"changeTextTransition"]; + + switch (page) { + case 0: + [label setText:NSLocalizedString(@"Stop Watch", @"Sidebar section header")]; + break; + case 1: + [label setText:NSLocalizedString(@"Timer", @"Sidebar section header")]; + default: + break; + } + [pageControl setCurrentPage:page]; + self.currentPage = page; + } + } +} + @end diff --git a/ios/iosremote/iosremote/slideShow_vc_iphone.m b/ios/iosremote/iosremote/slideShow_vc_iphone.m index ace2508a7e63..577b1171819f 100644 --- a/ios/iosremote/iosremote/slideShow_vc_iphone.m +++ b/ios/iosremote/iosremote/slideShow_vc_iphone.m @@ -17,6 +17,8 @@ #import "slideShowPreviewTable_vc.h" #import "slideShowSwipeInList_iphone.h" #import +#import "UIImageView+setImageAnimated.h" +#import "UIView+Shadowing.h" #import @@ -368,19 +370,8 @@ usingBlock:^(NSNotification *note) { [self.navigationController popViewControllerAnimated:YES]; }]; - self.slideView.layer.shadowColor = [[UIColor blackColor] CGColor]; - self.slideView.layer.shadowOpacity = 0.5; - self.slideView.layer.shadowRadius = 4.0; - self.slideView.layer.shadowOffset = CGSizeMake(3.0f, 3.0f); - self.slideView.layer.shadowPath = [UIBezierPath bezierPathWithRect:self.slideView.bounds].CGPath; - self.slideView.clipsToBounds = NO; - - self.secondarySlideView.layer.shadowColor = [[UIColor blackColor] CGColor]; - self.secondarySlideView.layer.shadowOpacity = 0.5; - self.secondarySlideView.layer.shadowRadius = 4.0; - self.secondarySlideView.layer.shadowOffset = CGSizeMake(3.0f, 3.0f); - self.secondarySlideView.layer.shadowPath = [UIBezierPath bezierPathWithRect:self.secondarySlideView.bounds].CGPath; - self.secondarySlideView.clipsToBounds = NO; + [self.slideView setShadow]; + [self.secondarySlideView setShadow]; // We calibrate once when presentation starts. needs a users alert to inform users to point at the center of the screen at the beginning self.pointerCalibrationOn = YES; diff --git a/ios/iosremote/iosremote/timer_clear_btn.png b/ios/iosremote/iosremote/timer_clear_btn.png index 92d5e54bce64..bde789acf730 100644 Binary files a/ios/iosremote/iosremote/timer_clear_btn.png and b/ios/iosremote/iosremote/timer_clear_btn.png differ diff --git a/ios/iosremote/iosremote/timer_clear_btn@2x.png b/ios/iosremote/iosremote/timer_clear_btn@2x.png index eb41194fb16a..d7260d38ef61 100644 Binary files a/ios/iosremote/iosremote/timer_clear_btn@2x.png and b/ios/iosremote/iosremote/timer_clear_btn@2x.png differ diff --git a/ios/iosremote/iosremote/timer_pause_btn.png b/ios/iosremote/iosremote/timer_pause_btn.png index ff155abfc58a..a2599c42652b 100644 Binary files a/ios/iosremote/iosremote/timer_pause_btn.png and b/ios/iosremote/iosremote/timer_pause_btn.png differ diff --git a/ios/iosremote/iosremote/timer_pause_btn@2x.png b/ios/iosremote/iosremote/timer_pause_btn@2x.png index cdcc54375e29..f71fd9800e06 100644 Binary files a/ios/iosremote/iosremote/timer_pause_btn@2x.png and b/ios/iosremote/iosremote/timer_pause_btn@2x.png differ diff --git a/ios/iosremote/iosremote/timer_resume_btn@2x.png b/ios/iosremote/iosremote/timer_resume_btn@2x.png index 47dc5597c4cd..82e000e26187 100644 Binary files a/ios/iosremote/iosremote/timer_resume_btn@2x.png and b/ios/iosremote/iosremote/timer_resume_btn@2x.png differ diff --git a/ios/iosremote/iosremote/timer_resume_btn.png b/ios/iosremote/iosremote/timer_settime_btn.png similarity index 63% rename from ios/iosremote/iosremote/timer_resume_btn.png rename to ios/iosremote/iosremote/timer_settime_btn.png index 1ff1681093d3..5db2f3226de7 100644 Binary files a/ios/iosremote/iosremote/timer_resume_btn.png and b/ios/iosremote/iosremote/timer_settime_btn.png differ diff --git a/ios/iosremote/iosremote/timer_settime_btn@2x.png b/ios/iosremote/iosremote/timer_settime_btn@2x.png new file mode 100644 index 000000000000..9fcbd62f802b Binary files /dev/null and b/ios/iosremote/iosremote/timer_settime_btn@2x.png differ diff --git a/ios/iosremote/iosremote/timer_start_btn.png b/ios/iosremote/iosremote/timer_start_btn.png index 0ba1051da474..0beff7bf31d3 100644 Binary files a/ios/iosremote/iosremote/timer_start_btn.png and b/ios/iosremote/iosremote/timer_start_btn.png differ diff --git a/ios/iosremote/iosremote/timer_start_btn@2x.png b/ios/iosremote/iosremote/timer_start_btn@2x.png index 9164857d24b3..78febe32ba4f 100644 Binary files a/ios/iosremote/iosremote/timer_start_btn@2x.png and b/ios/iosremote/iosremote/timer_start_btn@2x.png differ diff --git a/ios/iosremote/iosremote/zh-Hans.lproj/iPhone_autoSize.storyboard b/ios/iosremote/iosremote/zh-Hans.lproj/iPhone_autoSize.storyboard index 376532df6ec3..3f906d03eb31 100644 --- a/ios/iosremote/iosremote/zh-Hans.lproj/iPhone_autoSize.storyboard +++ b/ios/iosremote/iosremote/zh-Hans.lproj/iPhone_autoSize.storyboard @@ -194,51 +194,109 @@ + - - + + - + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -537,76 +595,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ios/iosremote/iosremote/zh-Hans.lproj/iPhone_autoSize_old.storyboard b/ios/iosremote/iosremote/zh-Hans.lproj/iPhone_autoSize_old.storyboard index 376532df6ec3..3f906d03eb31 100644 --- a/ios/iosremote/iosremote/zh-Hans.lproj/iPhone_autoSize_old.storyboard +++ b/ios/iosremote/iosremote/zh-Hans.lproj/iPhone_autoSize_old.storyboard @@ -194,51 +194,109 @@ + - - + + - + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -537,76 +595,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -