You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,14 +63,20 @@ The format of color is :
63
63
64
64
It will return the color use follow method:
65
65
66
-
[UIColor colorWithRed:[array[0]floatValue]/255
67
-
green:[array[1]floatValue]/255
68
-
blue:[array[2]floatValue]/255
69
-
alpha:[array[3]floatValue]];
66
+
[UIColor colorWithRed:[array[0]doubleValue]/255
67
+
green:[array[1]doubleValue]/255
68
+
blue:[array[2]doubleValue]/255
69
+
alpha:[array[3]doubleValue]];
70
70
71
71
Make sure you set the right value to the color.
72
72
73
-
**Support reference** If you want to set the same value to different color key, you can set the key of one color to another color, then AWLThemeManager will find the actual value of the color.
73
+
**Support white colorspace format**. Colors can now be specified in white colorspace (e.g. 0.4,1).
74
+
75
+
**Support reference**. If you want to set the same value to different color key, you can set the key of one color to another color, then AWLThemeManager will find the actual value of the color.
76
+
77
+
**Modify alpha by reference**. If you reference a color, e.g. “COLOR1” = “255,0,0,1”, “COLOR2” =
78
+
“COLOR1” you can now append “:[alpha]” to the reference to modify it’s
79
+
alpha, e.g. “COLOR2” = “COLOR1:0.2” will equate to “255,0,0,0.2”.
74
80
75
81
#### Define Font
76
82
The format of font is :
@@ -88,7 +94,7 @@ If you want to use system font, you should ignore the first value, like this:
88
94
bold,14 //boldSystemFontOfSize
89
95
italic,14 //italicSystemFontOfSize
90
96
91
-
**Support reference** Same with the color
97
+
**Support reference** Same with the color.
92
98
93
99
You can add whatever you want to the defaults.plist. Just use `objectForKey:` to get the value.
0 commit comments