立即注册 登录
IOS教程网 返回首页

huasy的个人空间 http://ios.662p.com/?1 [收藏] [复制] [分享] [RSS]

日志

字体颜色

已有 392 次阅读2016-8-16 00:42 |系统分类:用户界面

#define QUICKRGB(r,g,b) [UIColor colorWithRed:r / 255.0 green:g / 255.0 blue:b / 255.0  alpha:1.0]

#define HEXCOLOR(hex) [UIColor colorWithHex:hex]

 

#define UIColorFromRGB(rgbValue) \

[UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \

green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \

blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

 

//  随机色, 测试时使用

#define KColorRandomColor [UIColor colorWithRed:arc4random()%255/255.0 green:arc4random()%255/255.0 blue:arc4random()%255/255.0 alpha:1.0]

 

 

#define kDefaultGapHeight       10.0

#define kDefaultGapColor        QUICKRGB(245, 244, 242)

#define kDefauttGapLineColor    HEXCOLOR(0xe2e0de)

 

//内容部分正常显示颜色和突出显示颜色

#define kContentColorNormal      [UIColor colorWithRed:57/255.0 green:32/255.0 blue:0/255.0 alpha:1]

#define kContentColorHighlight   [UIColor colorWithRed:0/255.0 green:191/255.0 blue:225/255.0 alpha:1]

 

//TableView相关设置

//设置TableView分割线颜色

#define kSeparatorColor   [UIColor colorWithRed:154/255.0 green:154/255.0 blue:154/255.0 alpha:1]

//设置TableView背景色

#define kTableViewBgColor [UIColor colorWithRed:154/255.0 green:154/255.0 blue:154/255.0 alpha:1]

 

#define kTabelViewLineColor UIColorFromRGB(0xCBCCCD)

 

 

 

 

 

/************************************************颜色规范******************************************************/

 

#pragma mark - 前景色

/// 红1

#define KColor_Red_1 [UIColor colorWithHexString:@"#FC6496"]

/// 红2

#define KColor_Red_2 [UIColor colorWithHexString:@"#F94480"]

 

/// 绿1

#define KColor_Green_1 [UIColor colorWithHexString:@"#50D0C6"]

/// 绿2

#define KColor_Green_2 [UIColor colorWithHexString:@"#27C7BB"]

/// 绿3

#define KColor_Green_3 [UIColor colorWithHexString:@"#80DE6E"]

 

/// 蓝1

#define KColor_Blue_1 [UIColor colorWithHexString:@"#1AAFF4"]

/// 蓝2

#define KColor_Blue_2 [UIColor colorWithHexString:@"#59BCFA"]

 

/// 黄1

#define KColor_Yellow_1 [UIColor colorWithHexString:@"#FFB141"]

 

///纯黄

#define kColor_Yellow_0 [UIColor colorWithHexString:@"#FFFF00"]

 

/// 灰F

#define KColor_Gray_F [UIColor colorWithHexString:@"#FFFFFF"]

/// 灰C

#define KColor_Gray_C [UIColor colorWithHexString:@"#CCCCCC"]

/// 灰9

#define KColor_Gray_9 [UIColor colorWithHexString:@"#999999"]

/// 灰7

#define KColor_Gray_7 [UIColor colorWithHexString:@"#777777"]

/// 灰3

#define KColor_Gray_3 [UIColor colorWithHexString:@"#333333"]

/// 灰4

#define KColor_Gray_4 [UIColor colorWithHexString:@"#e7e7e7"]

/// 灰5

#define KColor_Gray_5 [UIColor colorWithHexString:@"#eeeeded"]

/// 灰6

#define KColor_Gray_6 [UIColor colorWithHexString:@"#f8f9fa"]

 

#pragma mark - 背景色

/// 底色

#define KColor_background [UIColor colorWithHexString:@"#F2F2F2"]

 

#define KLamaColor [UIColor colorWithHexString:@"#FF6085"]

 

 

/// 卡片边缘线

#define KColor_Card_border [UIColor colorWithHexString:@"#E2E2E2"]

/// 卡片内部分隔线

#define KColor_Card_separator [UIColor colorWithHexString:@"#ECECEC"]

 

 

#define kReadBlackColor     [UIColor colorWithRed:128/255.0f green:128/255.0f blue:128/255.0f alpha:1.0f]

#define kDarkBlackColor [UIColor colorWithRed:55/255.0f green:58/255.0f blue:70/255.0f alpha:1.0f]

 

#define kNavItemColor [UIColor colorWithRed:215/255.0f green:100/255.0f blue:100/255.0f alpha:1.0f]

#define kLiteBlackColor [UIColor colorWithRed:153/255.0f green:153/255.0f blue:153/255.0f alpha:1.0f]

 

#define kBlackTextColor      [UIColor colorWithRed:53.0f / 255.0f green:57.0f / 255.0f blue:66.0f / 255.0f alpha:1.0f]

 

#define kLightGrayTextColor   [UIColor colorWithRed:133.0f / 255.0f green:136.0f / 255.0f blue:140.0f / 255.0f alpha:1.0f]

#define kDarkBackgroudColor   [UIColor colorWithRed:53.0f / 255.0f green:57.0f / 255.0f blue:66.0f / 255.0f alpha:1.0f]

 

 

#define  kBlackTextColor [UIColor colorWithRed:53.0f / 255.0f green:57.0f / 255.0f blue:66.0f / 255.0f alpha:1.0f]

 


路过

鸡蛋

鲜花

握手

雷人

评论 (0 个评论)

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 立即注册

小黑屋|手机版|Archiver|IOS教程网. ( 粤ICP备12089784号  

GMT+8, 2018-9-22 07:33 , Processed in 0.147117 second(s), 24 queries .

Powered by Discuz X3.1

© 2001-2013 IOS教程网

返回顶部