//
//  UIColor+KLTUI.m
//  KaiLiTe
//
//  Created by yuwell on 2024/5/6.
//  Copyright © 2024 boosal. All rights reserved.
//

#import "UIColor+KLTUI.h"

@implementation UIColor (KLTUI)

+ (UIColor *)kltuiColorWithHex:(int)hexValue alpha:(CGFloat)alpha {
    return [UIColor colorWithRed:((float)((hexValue & 0xFF0000) >> 16))/255.0
                           green:((float)((hexValue & 0xFF00) >> 8))/255.0
                            blue:((float)(hexValue & 0xFF))/255.0
                           alpha:alpha];
}

+ (UIColor *)kltuiColorWithHex:(int)hexValue {
    return [UIColor kltuiColorWithHex:hexValue alpha:1.0];
}

/// 字色
+ (UIColor *)kltTitleTextColor {
    return [UIColor kltuiColorWithHex:0x333333];
}

+ (UIColor *)kltDescriptionTextColor {
    return [UIColor kltuiColorWithHex:0x666666];
}

+ (UIColor *)kltUnselectedTextColor {
    return [UIColor kltuiColorWithHex:0x999999];
}

+ (UIColor *)klTDisableTextColor {
    return [UIColor kltuiColorWithHex:0xCCCCCC];
}

/// 主色
+ (UIColor *)kltBrandColor {
    return [UIColor kltuiColorWithHex:0x73AD00];
}

/// 浅主色
+ (UIColor *)kltLightBrandColor {
    return [UIColor kltuiColorWithHex:0x95CB28];
}

/// 其他
+ (UIColor *)kltLineColor {
    return [UIColor kltuiColorWithHex:0xEEEEEE];
}

+ (UIColor *)kltInputBackgroundColor {
    return [UIColor kltuiColorWithHex:0xF7F7F7];
}

@end
