Skip to content

Commit

Permalink
Fix #90
Browse files Browse the repository at this point in the history
  • Loading branch information
andreamazz committed Nov 21, 2015
1 parent 7743cda commit 1e3d467
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions AMSlideOut/AMSlideOutGlobals.m
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,12 @@

@implementation AMSlideOutGlobals

+ (NSBundle *)bundle {
return [NSBundle bundleForClass:[self class]];
}

+ (NSDictionary*)defaultOptions
{
NSBundle *bundle = [NSBundle bundleForClass:[self class]];

CGFloat offsetY = SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0") ? 20.0f : 0.0f;
return @{
AMOptionsTableOffsetY : @(offsetY),
Expand All @@ -92,7 +94,7 @@ + (NSDictionary*)defaultOptions
AMOptionsEnableShadow : @(YES),
AMOptionsSetButtonDone : @(NO),
AMOptionsUseBorderedButton : @(NO),
AMOptionsButtonIcon : [UIImage imageNamed:@"iconSlide" inBundle:bundle compatibleWithTraitCollection:nil],
AMOptionsButtonIcon : [UIImage imageNamed:@"iconSlide" inBundle:[self bundle] compatibleWithTraitCollection:nil],
AMOptionsUseDefaultTitles : @(YES),
AMOptionsSlideValue : @(270),
AMOptionsBackground : [UIColor colorWithRed:0.19 green:0.22 blue:0.29 alpha:1.0],
Expand Down Expand Up @@ -166,7 +168,7 @@ + (NSDictionary*)defaultFlatOptions
AMOptionsEnableShadow : @(YES),
AMOptionsSetButtonDone : @(NO),
AMOptionsUseBorderedButton : @(NO),
AMOptionsButtonIcon : [UIImage imageNamed:@"iconSlideBlack.png"],
AMOptionsButtonIcon : [UIImage imageNamed:@"iconSlideBlack" inBundle:[self bundle] compatibleWithTraitCollection:nil],
AMOptionsUseDefaultTitles : @(YES),
AMOptionsSlideValue : @(270),
AMOptionsBackground : [UIColor colorWithRed:0.8 green:0.8 blue:0.8 alpha:1.0],
Expand Down

0 comments on commit 1e3d467

Please sign in to comment.