-
Notifications
You must be signed in to change notification settings - Fork 0
/
Chameleon_.h
executable file
·66 lines (57 loc) · 2.07 KB
/
Chameleon_.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//
// ChameleonInternal.h
// Chameleon
//
// Created by Vicc Alexander on 6/4/15.
// Copyright (c) 2015 Vicc Alexander. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "ChameleonConstants.h"
#import "ChameleonEnums.h"
#import "ChameleonMacros.h"
#import "NSArray+Chameleon.h"
#import "UIColor+Chameleon.h"
#import "UINavigationController+Chameleon.h"
#import "UIViewController+Chameleon.h"
@interface Chameleon : NSObject
#pragma mark - Global Theming
/**
* Set a global theme using a primary color and the specified content style.
*
* @param primaryColor The primary color to theme all controllers with.
* @param contentStyle The contentStyle.
*
* @note By default the secondary color will be a darker shade of the specified primary color.
*
* @since 2.0
*/
+ (void)setGlobalThemeUsingPrimaryColor:(UIColor *)primaryColor
withContentStyle:(UIContentStyle)contentStyle;
/**
* Set a global theme using a primary color, secondary color, and the specified content style.
*
* @param primaryColor The primary color to theme all controllers with.
* @param secondaryColor The secondary color to theme all controllers with.
* @param contentStyle The contentStyle.
*
* @since 2.0
*/
+ (void)setGlobalThemeUsingPrimaryColor:(UIColor *)primaryColor
withSecondaryColor:(UIColor *)secondaryColor
andContentStyle:(UIContentStyle)contentStyle;
/**
* Set a global theme using a primary color, secondary color, font name, and the specified content style.
*
* @param primaryColor The primary color to theme all controllers with.
* @param secondaryColor The secondary color to theme all controllers with.
* @param fontName The default font for all text-based UI elements.
* @param contentStyle The contentStyle.
*
* @since 2.0
*/
+ (void)setGlobalThemeUsingPrimaryColor:(UIColor *)primaryColor
withSecondaryColor:(UIColor *)secondaryColor
usingFontName:(NSString *)fontName
andContentStyle:(UIContentStyle)contentStyle;
@end