-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUIViewController+Chameleon.h
executable file
·64 lines (57 loc) · 2.01 KB
/
UIViewController+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
//
// UIViewController+Chameleon.h
// Chameleon
//
// Created by Vicc Alexander on 6/4/15.
// Copyright (c) 2015 Vicc Alexander. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ChameleonEnums.h"
@interface UIViewController (Chameleon)
/**
* Sets the color theme for the specified view controller using a primary color and the specified content style.
*
* @param primaryColor The primary color.
* @param contentStyle The contentStyle.
*
* @since 2.0
*/
- (void)setThemeUsingPrimaryColor:(UIColor *)primaryColor
withContentStyle:(UIContentStyle)contentStyle;
/**
* Sets the color theme for the specified view controller using a primary color, secondary color, and the specified content style.
*
* @param primaryColor The primary color.
* @param secondaryColor The secondary color.
* @param contentStyle The contentStyle.
*
* @since 2.0
*/
- (void)setThemeUsingPrimaryColor:(UIColor *)primaryColor
withSecondaryColor:(UIColor *)secondaryColor
andContentStyle:(UIContentStyle)contentStyle;
/**
* Sets the color theme for the specified view controller using a primary color, secondary color, font name, and the specified content style.
*
* @param primaryColor The primary color.
* @param secondaryColor The secondary color.
* @param fontName The main font to use for all text-based elements.
* @param contentStyle The contentStyle.
*
* @since 2.0
*/
- (void)setThemeUsingPrimaryColor:(UIColor *)primaryColor
withSecondaryColor:(UIColor *)secondaryColor
usingFontName:(NSString *)fontName
andContentStyle:(UIContentStyle)contentStyle;
/**
* Sets the status bar style for the specified @c UIViewController and all its child controllers.
*
* @param statusBarStyle The style of the device's status bar.
*
* @note Chameleon introduces a new @c statusBarStyle called @c UIStatusBarStyleContrast.
*
* @since 2.0
*/
- (void)setStatusBarStyle:(UIStatusBarStyle)statusBarStyle;
@end