字型顏色,css字型顏色

來源:互聯網
上載者:User

字型顏色,css字型顏色

#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]

 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.