// // MacroDefinition.swift // HCQuanfangtong // // Created by Apple on 2022/5/28. // Copyright © 2022 Jyp. All rights reserved. // import Foundation import UIKit //MARK: - 屏幕相关 let kSCREEN_WIDTH : CGFloat = UIScreen.main.bounds.size.width let kSCREEN_HEIGHT : CGFloat = UIScreen.main.bounds.size.height ///时间状态栏高度 let kStatuBarHeight : CGFloat = UIApplication.shared.statusBarFrame.height ///导航栏高度44 let KNavBarHeight : CGFloat = 44 ///导航栏加时间状态栏高度 let kNavAndStatuHeight : CGFloat = kStatuBarHeight + KNavBarHeight ///IphoneX以上机型 var kIsIphoneX : Bool = { if #available(iOS 11.0,*) { if let dis = UIApplication.shared.delegate?.window??.safeAreaInsets.bottom { return dis > 0 } else{ return false } } return false }() ///底部tabbar高度 let kTabBarHeight : CGFloat = (kIsIphoneX == false ?49 : 83) //MARK: - New Version Color /// 主题色 红 var kThemeColor : UIColor = UIColor.color(hex: "#C62223") /// 主题色 透明红 var kThemeColorAlpha : UIColor = UIColor.color(hex: "#C62223", alpha: 0.3) ///灰白背景 var kTBackgroundColor : UIColor = UIColor.color(hex: "#EDEDED") /// 主题黑色 var kThemeBlackColor : UIColor = UIColor.color(hex: "#212122") /// 主题白色 var kThemeWhiteColor : UIColor = UIColor.color(hex: "#FFFFFF") /// 危险色 红色 var kThemeDangerousColor: UIColor = UIColor.color(hex: "#F56C6C") /// 提示颜色 橙色 var kThemeOfPromptColor : UIColor! = UIColor.color(hex: "#E6A23C") /// 成功色 绿色 var kThemeOfSuccessColor: UIColor! = UIColor.color(hex: "#67C23A") /// 遮罩颜色 #000000 0.5 var kThemeMaskColor : UIColor = UIColor.init(red: 0, green: 0, blue: 0, alpha: 0.5) /// 主题背景颜色 var kThemeOfBackgroundColor : UIColor! = UIColor.color(hex: "#F7F7F7") /// 分割线颜色 var kThemeOfLineColor : UIColor! = UIColor.color(hex: "#E7E8ED") /// 需要突出显示的块 背景颜色 var kThemeOfInputBackgroundColor : UIColor! = UIColor.color(hex: "#F5F7FA") //MARK: text /// 主题文字颜色 var kThemeOfTextBlackColor : UIColor! = UIColor.color(hex: "#232C37") /// 主题文字颜色 深灰 var kThemeOfTextDarkColor : UIColor! = UIColor.color(hex: "#6F7884") /// 主题文字颜色 浅灰 var kThemeOfTextLightColor : UIColor! = UIColor.color(hex: "#89939F") /// 主题文字置灰字体 var kThemeOfTextDisabledColor : UIColor! = UIColor.color(hex: "#89939F") /// 主题input placeholderColor var kThemeOfTextPlaceholderColor : UIColor! = UIColor.color(hex: "#BDC3CE") //MARK: button // 实心按钮高亮背景颜色 var kThemeOfButtonTapBackgroundColor : UIColor! = UIColor.color(hex: "#3C51A8") // 实心按钮不可点击背景颜色 var kThemeOfButtonDisabledBackgroundColor : UIColor! = kThemeOfLineColor // 空心按钮 高亮状态背景色 4169E1 0.05 可被作为空心按钮的选中颜色 var kThemeOfButtonEmptyTapBackgroundColor : UIColor = UIColor.init(red: 65.0/255.0, green: 105.0/255.0, blue: 225.0/255.0, alpha: 0.05)