JLChen
2021-05-18 a869383e163a18cdedcf587383c1eca043129754
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
//
//  Copyright © 2017年 Zhejiang Dahua Technology Co.,Ltd. All rights reserved.
//  模块配置管理类,读取DHModuleConfig.plist的配置
//  【约定】
//  1、颜色key值xxxxxColor,键值@"RRGGBB"
 
#import <UIKit/UIKit.h>
 
@interface DHModuleConfig : NSObject
 
///DHModuleConfig.plist对应的键值对
@property (nonatomic, strong, readonly) NSMutableDictionary *dicConfigs;
 
+ (instancetype)shareInstance;
/// 标记是否国内乐橙
@property (nonatomic, assign, readonly) BOOL isLeChange;
/// 是否显示全部录像
@property (nonatomic, assign, readonly) BOOL isShowAllRecord;
/// 是否显示收藏点遮罩
@property (nonatomic, assign, readonly) BOOL isShowCollectionMaskView;
/// 是否显示全部录像遮罩
@property (nonatomic, assign, readonly) BOOL isShowAllRecordMaskView;
/// 是否显示全部录像遮罩
@property (nonatomic, assign, readonly) BOOL isShowMoveAreaMaskView;
/// 是否显示全部录像遮罩
@property (nonatomic, assign, readonly) BOOL isShowLinkAgeMaskView;
/// 是否显示全部录像遮罩
@property (nonatomic, assign, readonly) BOOL isShowWeatherMaskView;
/// 是否显示全部录像遮罩
@property (nonatomic, assign, readonly) BOOL isShowDialogMaskView;
/// 是否中性版本
@property (nonatomic, assign, readonly) BOOL isGeneralVersion;
/// 是否发布版本
@property (nonatomic, assign, readonly) BOOL isDistributionVersion;
/// 云台操作盘类型,0表示四方向,1表示八方向
@property (nonatomic, assign, readonly) NSInteger ptzPanelStyle;
/// 播放操作盘背景
@property (nonatomic, strong, readonly) UIColor *playOperateBgColor;
/// 云台操作盘类型,0表示四方向,1表示八方向
@property (nonatomic, strong, readonly) UIColor *liveMonitorDateBarColor;
 
/// 主题色,乐橙是橙色,easy4ip是蓝色
@property (nonatomic, strong, readonly) UIColor *themeColor;
/// 第二主题色,乐橙是橙色,easy4ip是蓝色
@property (nonatomic, strong, readonly) UIColor *themeSecondColor;
/// 导航栏背景颜色
@property (nonatomic, strong, readonly) UIColor *navigationBarColor;
/// 导航栏字体颜色
@property (nonatomic, strong, readonly) UIColor *navigationTextColor;
///消息日历选中颜色
@property (nonatomic, strong, readonly) UIColor *messageCalendarColor;
///变焦Bar颜色
@property (nonatomic, strong, readonly) UIColor *zoomFocusProgressBarColor;
/// 确定按钮颜色
@property (nonatomic, strong, readonly) UIColor *confirmButtonColor;
 
/**
 LCSheetView的样式
【备注】字典格式如下:
 @{
    @"separateLineColor" : UIColor,
    @"containerBgColor" : UIColor,
    @"buttonBgColor" : UIColor,
    @"cancleTitleColor" : UIColor,
    @"deadlineAttributedColor": UIColor,
    @"paddingBetwennCancleAndOther" : NSNumber,
    @"showButtonBackground": @(Boolen)
 
 }
 @return NSDictonary
 */
- (NSDictionary *)shareSheetType;
 
 
 
/**
 按钮通用配置
 
 【备注】字典格式如下:
    @{
        @"backgroundColor": UIColor    //背景颜色
        @"conerRadius": NSNumber
        @"height": NSNumber
    }
 @return NSDictionary
 */
- (NSDictionary *)commonButtonConfig;
 
/**
 将带颜色格式的字段转换成UIColor
 
 @param dicOrigin 原始配置
 @return 转换后的配置
 */
- (NSDictionary *)generateDictionaryContainColor:(NSDictionary *)dicOrigin;
 
 
//MARK: - Extesion
/**
 通用按钮的cornerRadius
 
 @return CGFloat
 */
- (CGFloat)commonButtonCornerRadius;
 
/**
 通用按钮颜色
 
 @return UIColor
 */
- (UIColor *)commonButtonColor;
 
/**
技术支持电话
 
@return NSString 
*/
- (NSString *)serviceCall;
 
 
@end