Add command to generate Colors
This commit is contained in:
21
SampleFiles/Colors/Generated/R2Color+Font.swift
Normal file
21
SampleFiles/Colors/Generated/R2Color+Font.swift
Normal file
@ -0,0 +1,21 @@
|
||||
// Generated from ColorToolCore at 2021-12-20 15:27:15 +0000
|
||||
|
||||
import UIKit
|
||||
|
||||
extension R2Color {
|
||||
|
||||
/// Color red is #FF0000 (light) or #FF0000 (dark)"
|
||||
@objc var red: UIColor {
|
||||
UIColor(named: "red")!
|
||||
}
|
||||
|
||||
/// Color green_alpha_50 is #A000FF00 (light) or #A000FF00 (dark)"
|
||||
@objc var green_alpha_50: UIColor {
|
||||
UIColor(named: "green_alpha_50")!
|
||||
}
|
||||
|
||||
/// Color blue_light_dark is #0000FF (light) or #0000FF (dark)"
|
||||
@objc var blue_light_dark: UIColor {
|
||||
UIColor(named: "blue_light_dark")!
|
||||
}
|
||||
}
|
21
SampleFiles/Colors/Generated/UIColor+Font.swift
Normal file
21
SampleFiles/Colors/Generated/UIColor+Font.swift
Normal file
@ -0,0 +1,21 @@
|
||||
// Generated from ColorToolCore at 2021-12-20 15:16:18 +0000
|
||||
|
||||
import UIKit
|
||||
|
||||
extension UIColor {
|
||||
|
||||
/// Color red is #FF0000 (light) or #FF0000 (dark)"
|
||||
static var red: UIColor {
|
||||
UIColor(named: "red")!
|
||||
}
|
||||
|
||||
/// Color green_alpha_50 is #A000FF00 (light) or #A000FF00 (dark)"
|
||||
static var green_alpha_50: UIColor {
|
||||
UIColor(named: "green_alpha_50")!
|
||||
}
|
||||
|
||||
/// Color blue_light_dark is #0000FF (light) or #0000AA (dark)"
|
||||
static var blue_light_dark: UIColor {
|
||||
UIColor(named: "blue_light_dark")!
|
||||
}
|
||||
}
|
21
SampleFiles/Colors/Generated/UIColor+FontSampleApp.swift
Normal file
21
SampleFiles/Colors/Generated/UIColor+FontSampleApp.swift
Normal file
@ -0,0 +1,21 @@
|
||||
// Generated from ColorToolCore at 2021-12-20 15:17:10 +0000
|
||||
|
||||
import UIKit
|
||||
|
||||
extension UIColor {
|
||||
|
||||
/// Color red is #FF0000 (light) or #FF0000 (dark)"
|
||||
static var red: UIColor {
|
||||
UIColor(named: "red")!
|
||||
}
|
||||
|
||||
/// Color green_alpha_50 is #A000FF00 (light) or #A000FF00 (dark)"
|
||||
static var green_alpha_50: UIColor {
|
||||
UIColor(named: "green_alpha_50")!
|
||||
}
|
||||
|
||||
/// Color blue_light_dark is #0000FF (light) or #0000AA (dark)"
|
||||
static var blue_light_dark: UIColor {
|
||||
UIColor(named: "blue_light_dark")!
|
||||
}
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
{
|
||||
"colors": [
|
||||
{
|
||||
"color": {
|
||||
"color-space": "srgb",
|
||||
"components": {
|
||||
"alpha": "0xFF",
|
||||
"blue": "0xFF",
|
||||
"green": "0x00",
|
||||
"red": "0x00",
|
||||
}
|
||||
},
|
||||
"idiom": "universal"
|
||||
},
|
||||
{
|
||||
"appearances": [
|
||||
{
|
||||
"appearance": "luminosity",
|
||||
"value": "dark"
|
||||
}
|
||||
],
|
||||
"color": {
|
||||
"color-space": "srgb",
|
||||
"components": {
|
||||
"alpha": "0xFF",
|
||||
"blue": "0xFF",
|
||||
"green": "0x00",
|
||||
"red": "0x00",
|
||||
}
|
||||
},
|
||||
"idiom": "universal"
|
||||
}
|
||||
],
|
||||
"info": {
|
||||
"author": "xcode",
|
||||
"version": 1
|
||||
}
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
{
|
||||
"colors": [
|
||||
{
|
||||
"color": {
|
||||
"color-space": "srgb",
|
||||
"components": {
|
||||
"alpha": "0xA0",
|
||||
"blue": "0x00",
|
||||
"green": "0xFF",
|
||||
"red": "0x00",
|
||||
}
|
||||
},
|
||||
"idiom": "universal"
|
||||
},
|
||||
{
|
||||
"appearances": [
|
||||
{
|
||||
"appearance": "luminosity",
|
||||
"value": "dark"
|
||||
}
|
||||
],
|
||||
"color": {
|
||||
"color-space": "srgb",
|
||||
"components": {
|
||||
"alpha": "0xA0",
|
||||
"blue": "0x00",
|
||||
"green": "0xFF",
|
||||
"red": "0x00",
|
||||
}
|
||||
},
|
||||
"idiom": "universal"
|
||||
}
|
||||
],
|
||||
"info": {
|
||||
"author": "xcode",
|
||||
"version": 1
|
||||
}
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
{
|
||||
"colors": [
|
||||
{
|
||||
"color": {
|
||||
"color-space": "srgb",
|
||||
"components": {
|
||||
"alpha": "0xFF",
|
||||
"blue": "0x00",
|
||||
"green": "0x00",
|
||||
"red": "0xFF",
|
||||
}
|
||||
},
|
||||
"idiom": "universal"
|
||||
},
|
||||
{
|
||||
"appearances": [
|
||||
{
|
||||
"appearance": "luminosity",
|
||||
"value": "dark"
|
||||
}
|
||||
],
|
||||
"color": {
|
||||
"color-space": "srgb",
|
||||
"components": {
|
||||
"alpha": "0xFF",
|
||||
"blue": "0x00",
|
||||
"green": "0x00",
|
||||
"red": "0xFF",
|
||||
}
|
||||
},
|
||||
"idiom": "universal"
|
||||
}
|
||||
],
|
||||
"info": {
|
||||
"author": "xcode",
|
||||
"version": 1
|
||||
}
|
||||
}
|
9
SampleFiles/Colors/sampleColors1.txt
Normal file
9
SampleFiles/Colors/sampleColors1.txt
Normal file
@ -0,0 +1,9 @@
|
||||
# Available format:
|
||||
# colorName=#RGB/#ARGB
|
||||
# colorName #RGB/#ARGB
|
||||
# colorName #RGB/#ARGB #RGB/#ARGB
|
||||
|
||||
# Comment line and empty line will be ingored
|
||||
red = #FF0000
|
||||
green_alpha_50 = #A000FF00
|
||||
blue_light_dark = #0000FF #0000AA
|
Reference in New Issue
Block a user