Skip to content

Commit

Permalink
Necessary change
Browse files Browse the repository at this point in the history
  • Loading branch information
escoz committed Sep 16, 2013
1 parent c99c077 commit f634a6b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions Source/Services/Analytics/Generated/GTLAnalyticsProfile.h
Expand Up @@ -111,6 +111,7 @@
// Website URL for this view (profile).
@property (copy) NSString *websiteUrl;

- (UIColor *)dashboardBackgroundColor;
@end


Expand Down
8 changes: 8 additions & 0 deletions Source/Services/Analytics/Generated/GTLAnalyticsProfile.m
Expand Up @@ -31,6 +31,7 @@
// GTLAnalyticsProfileParentLink (0 custom class methods, 2 custom properties)

#import "GTLAnalyticsProfile.h"
#import "UIColor+Hex.h"

// ----------------------------------------------------------------------------
//
Expand All @@ -55,6 +56,13 @@ + (void)load {
[self registerObjectClassForKind:@"analytics#profile"];
}

- (UIColor *)dashboardBackgroundColor
{
NSString *color = [self.userProperties valueForKey:@"color"];
float alpha = 0.09;
UIColor *tint = color == nil ? [UIColor colorFromHexString:@"#777777" andAlpha:alpha] : [UIColor colorFromHexString:color andAlpha:alpha];
return tint;
}
@end


Expand Down

0 comments on commit f634a6b

Please sign in to comment.