KXKiOS7ColorsAndGradients
iOS 7 Colors and Gradients.
Install / Use
/learn @jgrandelli/KXKiOS7ColorsAndGradientsREADME
#KXKiOS7ColorsAndGradients
A collection of colors and gradients taken from Apple's iOS 7 Apps and icons.
<img src="https://raw.github.com/jgrandelli/KXKiOS7ColorsAndGradients/master/preview.png" width="320"/>##Installation Code: Either install from CocoaPods or copy the contents of /KXKiOS7ColorsAndGradients into your project.
Swatches: Simply double click on either swatch file.
##To use an iOS 7 Color You would use this just like anyother color except you replace UIColor with KXKiOS7Colors (make sure to import KXKiOS7Colors.h).
view.backgroundColor = [KXKiOS7Colors lightGreen];
##To use an iOS 7 Gradient Make sure to import KXKiOS7Grandients.h
Then use you can create a CAGradientLayer with 1 of 7 gradients based on the iOS 7 app icons.
CAGradientLayer *gradient = [KXKiOSGradients lightPurpleToDarkPurpleGradient];
gradient.frame = view.bounds;
[view.layer addSublayer:gradient];
You would use the CAGradientLayer the same way you would use any other layer. Keep in mind that if you don't set the frame of the CAGradientLayer it will not be visible.
##Notes
Multiple methods can correspond to the same gradient. This may seem confusing at first, but I did this because I created these gradients based on the iOS 7 app icons and wanted to be able to create gradients based on the icon that inspired it.
For example Face Time and Messages both use the same gradient (light green to dark green). So the following 3 methods all create the same gradient.
[KXKiOS7Gradients lightGreenToDarkGreenGradient]
[KXKiOS7Gradients faceTimeGradient]
[KXKiOS7Gradients messagesGradient]
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
