From 1da877fed707dd0b64b6879e7c831e7e8cf2d579 Mon Sep 17 00:00:00 2001 From: Diego Waxemberg Date: Mon, 28 Sep 2015 21:18:35 -0700 Subject: [PATCH] Changed theme to light/dark gray and updated launch screen. Also added a border and drop shadow to app icons --- Launch Screen.xib | 69 +++++++++++-------- .../ViewControllers/MainFrameViewController.m | 12 ++++ iPad.storyboard | 35 ++++++++-- iPhone.storyboard | 40 ++++++++--- 4 files changed, 112 insertions(+), 44 deletions(-) diff --git a/Launch Screen.xib b/Launch Screen.xib index 9e90326..bfeb7af 100644 --- a/Launch Screen.xib +++ b/Launch Screen.xib @@ -1,36 +1,51 @@ - + - + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Limelight/ViewControllers/MainFrameViewController.m b/Limelight/ViewControllers/MainFrameViewController.m index 0e9e7f7..f41c272 100644 --- a/Limelight/ViewControllers/MainFrameViewController.m +++ b/Limelight/ViewControllers/MainFrameViewController.m @@ -609,6 +609,7 @@ static NSMutableSet* hostList; - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath { UICollectionViewCell* cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"AppCell" forIndexPath:indexPath]; + App* app = _sortedAppList[indexPath.row]; UIAppView* appView = [[UIAppView alloc] initWithApp:app andCallback:self]; [appView updateAppImage]; @@ -621,6 +622,17 @@ static NSMutableSet* hostList; [cell.subviews.firstObject removeFromSuperview]; // Remove a view that was previously added [cell addSubview:appView]; + + + UIBezierPath *shadowPath = [UIBezierPath bezierPathWithRect:cell.bounds]; + cell.layer.masksToBounds = NO; + cell.layer.shadowColor = [UIColor blackColor].CGColor; + cell.layer.shadowOffset = CGSizeMake(1.0f, 5.0f); + cell.layer.shadowOpacity = 0.5f; + cell.layer.shadowPath = shadowPath.CGPath; + + cell.layer.borderColor = [[UIColor colorWithRed:0 green:0 blue:0 alpha:0.3f] CGColor]; + cell.layer.borderWidth = 1; return cell; } diff --git a/iPad.storyboard b/iPad.storyboard index 00c2f24..9dc847e 100644 --- a/iPad.storyboard +++ b/iPad.storyboard @@ -1,7 +1,8 @@ - + - + + @@ -16,6 +17,8 @@ + + @@ -25,13 +28,15 @@ - + + + @@ -42,14 +47,15 @@ + @@ -77,6 +83,7 @@