Skip to content

Commit

Permalink
Prepare for #17 and actually fix #12
Browse files Browse the repository at this point in the history
  • Loading branch information
conath committed Feb 6, 2017
1 parent 50efa74 commit ece55b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tweak.xm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#define SCROLL_BEGIN_ID @"com.eswick.appcenter.notification.scrollbegin"
#define SCROLL_END_ID @"com.eswick.appcenter.notification.scrollend"
#define APP_PAGE_PADDING 5.0
#define SCALE_MULTIPLIER 0.925
#define SCALE_MULTIPLIER 1.0
#define PREFS_PATH [[@"~/Library" stringByExpandingTildeInPath] stringByAppendingPathComponent:@"/Preferences/com.eswick.appcenter.plist"]

#pragma mark Helpers
Expand Down Expand Up @@ -211,7 +211,7 @@ static CGAffineTransform transformToRect(CGRect sourceRect, CGRect finalRect) {
self.hostView.layer.masksToBounds = true;
self.hostView.backgroundColor = [UIColor blackColor];

CGFloat scale = [ACManualLayout defaultAppPageScale];
CGFloat scale = [ACManualLayout defaultAppPageScale]*SCALE_MULTIPLIER;
self.hostView.transform = CGAffineTransformMakeScale(scale, scale);

self.hostView.alpha = 0.0;
Expand Down Expand Up @@ -505,7 +505,7 @@ BOOL reloadingControlCenter = false;
imageView.center = CGPointMake([[UIScreen mainScreen] bounds].size.width / 2, [[UIScreen mainScreen] bounds].size.height / 2);
imageView.alpha = 0;

CGFloat scale = [ACManualLayout defaultAppPageScale];
CGFloat scale = [ACManualLayout defaultAppPageScale]*SCALE_MULTIPLIER;
CGRect toRect = CGRectApplyAffineTransform([[UIScreen mainScreen] bounds], CGAffineTransformMakeScale(scale, scale));
toRect.origin = CGPointMake(CGRectGetMidX([[UIScreen mainScreen] bounds]) - (toRect.size.width / 2), CGRectGetMidY([[UIScreen mainScreen] bounds]) - (toRect.size.height / 2) - APP_PAGE_PADDING);

Expand Down

1 comment on commit ece55b4

@eswick
Copy link
Owner

@eswick eswick commented on ece55b4 Feb 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I see what you did there. You've convinced me, nice work!

Please sign in to comment.