ZXWKitConst.h
1.51 KB
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
//
// ZXWKitConst.h
// LoongsCity
//
// Created by loongs_zxw on 2017/11/15.
// Copyright © 2017年 xiaoxiong. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <objc/message.h>
#import "UIViewExt.h"
#import "UIView+ViewController.h"
// 当前设备的物理尺寸
#define ZXWkScreen_width [UIScreen mainScreen].bounds.size.width
#define ZXWkScreen_height [UIScreen mainScreen].bounds.size.height
// 颜色定义
#define ZXWkColor(r,g,b,a) [UIColor colorWithRed:(r / 255.0) green:(g / 255.0) blue:(b / 255.0) alpha:a]
#pragma mark - ZXWSegementView
// 设置标题选中字体(LBSegementView)
#define segementTitleSelectFont [UIFont systemFontOfSize:16 weight:1.5]
// 设置标题正常字体(LBSegementView)
#define segementTitleNormalFont [UIFont systemFontOfSize:16]
// 设置标题文本颜色(LBSegementView)
#define segementColor_title_color [UIColor colorWithRed:180 / 255.0 green:149 / 255.0 blue:111 / 255.0 alpha:1.0]
// 设置标题文本选中颜色(LBSegementView)
#define segementColor_title_select_color [UIColor colorWithRed:130 / 255.0 green:79 / 255.0 blue:15 / 255.0 alpha:1.0]
// 常量
// 分段控件标题之间的间距
UIKIT_EXTERN const CGFloat ZXWSegementViewTitlePadding;
// 分段控件底部视图的高度
UIKIT_EXTERN const CGFloat ZXWSegementViewBottomViewHeight;
// 分段控件底部视图的宽度
UIKIT_EXTERN const CGFloat ZXWSegementViewBottomViewWidth;
// 分段控件标题缩放的最大比例(与正常状态对比)
UIKIT_EXTERN const CGFloat ZXWSegementViewTitleSelectMaxScale;