Theme

color

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
background color
*/
@property (strong, nonatomic) UIColor *background;
/**
theme color
*/
@property (strong, nonatomic) UIColor *theme;
/**
accent color
*/
@property (strong, nonatomic) UIColor *accent;

/**
组tableview背景色
*/
@property (strong, nonatomic) UIColor *groupTableViewBackground;

/**
分割线颜色
*/
@property (strong, nonatomic) UIColor *separatorColor;

font

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
/**
偏好的字号,默认值为系统建议字号:14。
当此数值变更时,custom的字号以相同的比例变更。
*/
@property (assign, nonatomic) CGFloat prefersFontSize;


/**
字体名(为空时是系统字体)
*/
@property (copy, nonatomic) NSString *name;

// @xaoxuu: system small = 12
@property (strong, readonly, nonatomic) UIFont *systemSmall;
// @xaoxuu: system normal = 14
@property (strong, readonly, nonatomic) UIFont *systemNormal;



// @xaoxuu: normal
@property (strong, readonly, nonatomic) UIFont *customSmall;
@property (strong, readonly, nonatomic) UIFont *customBoldSmall;
// @xaoxuu: normal
@property (strong, readonly, nonatomic) UIFont *customNormal;
@property (strong, readonly, nonatomic) UIFont *customBoldNormal;
// @xaoxuu: normal
@property (strong, readonly, nonatomic) UIFont *customLarge;
@property (strong, readonly, nonatomic) UIFont *customBoldLarge;


- (UIFont *)fontWithCustomPrefersFontSize:(CGFloat)size;
- (UIFont *)boldFontWithCustomPrefersFontSize:(CGFloat)size;



评论