Skip to content

Commit 3637d5d

Browse files
Updated note about alpha components.
1 parent 5801a19 commit 3637d5d

4 files changed

Lines changed: 94 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ But with the plugin it becomes:
99

1010
![Demo of the plugin](CSR_Demo.png)
1111

12-
If you click on the color then a color picker is displayed. As you choose colours the code is updated. One thing to note is if you select a predefined colour and start changing the colour then the code gets changed to RGB values. In the other cases I've tried to keep it as non-destructive as possible though at times the number of decimal places can change. When the alpha isn't specified (it isn't required as part of the Rainbow library as I set it to a default value of 1.0) then the plugin doesn't add the alpha component to the code. You'll have to do that manually.
12+
If you click on the color then a color picker is displayed. As you choose colours the code is updated. One thing to note is if you select a predefined colour and start changing the colour then the code gets changed to RGB values. In the other cases I've tried to keep it as non-destructive as possible though at times the number of decimal places can change. When the alpha isn't specified (it isn't required as part of the Rainbow library as I set it to a default value of 1.0) then the plugin doesn't add the alpha component to the code. As of May 29, 2015 the plugin will now add the alpha component for you in Swift if you change the value in the colour picker.
1313

1414
This project was inspired from [Color Sense for Xcode](https://github.com/omz/ColorSense-for-Xcode). In fact it looks (and I think it behaves mostly) like it. But I built it completely from scratch in Swift though I did use that project as a template for some items as I haven't done anything on the Mac side before.
1515

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Bucket
3+
type = "1"
4+
version = "2.0">
5+
<Breakpoints>
6+
<BreakpointProxy
7+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
8+
<BreakpointContent
9+
shouldBeEnabled = "No"
10+
ignoreCount = "0"
11+
continueAfterRunningActions = "No"
12+
filePath = "ColorSenseRainbow/ColorSenseRainbow.swift"
13+
timestampString = "451842016.087175"
14+
startingColumnNumber = "9223372036854775807"
15+
endingColumnNumber = "9223372036854775807"
16+
startingLineNumber = "155"
17+
endingLineNumber = "155"
18+
landmarkName = "selectionDidChange(_:)"
19+
landmarkType = "5">
20+
</BreakpointContent>
21+
</BreakpointProxy>
22+
<BreakpointProxy
23+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
24+
<BreakpointContent
25+
shouldBeEnabled = "No"
26+
ignoreCount = "0"
27+
continueAfterRunningActions = "No"
28+
filePath = "ColorSenseRainbow/PredefinedColorBuilder.swift"
29+
timestampString = "452369110.601376"
30+
startingColumnNumber = "9223372036854775807"
31+
endingColumnNumber = "9223372036854775807"
32+
startingLineNumber = "42"
33+
endingLineNumber = "42"
34+
landmarkName = "createSwiftColor(_:forSearchResult:)"
35+
landmarkType = "5">
36+
</BreakpointContent>
37+
</BreakpointProxy>
38+
<BreakpointProxy
39+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
40+
<BreakpointContent
41+
shouldBeEnabled = "No"
42+
ignoreCount = "0"
43+
continueAfterRunningActions = "No"
44+
filePath = "ColorSenseRainbow/CalculatedRGBBuilder.swift"
45+
timestampString = "452226083.763559"
46+
startingColumnNumber = "9223372036854775807"
47+
endingColumnNumber = "9223372036854775807"
48+
startingLineNumber = "26"
49+
endingLineNumber = "26"
50+
landmarkName = "stringForColor(_:forSearchResult:)"
51+
landmarkType = "5">
52+
</BreakpointContent>
53+
</BreakpointProxy>
54+
<BreakpointProxy
55+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
56+
<BreakpointContent
57+
shouldBeEnabled = "No"
58+
ignoreCount = "0"
59+
continueAfterRunningActions = "No"
60+
filePath = "ColorSenseRainbow/RGBCalculatedSeeker.swift"
61+
timestampString = "452538679.105802"
62+
startingColumnNumber = "9223372036854775807"
63+
endingColumnNumber = "9223372036854775807"
64+
startingLineNumber = "77"
65+
endingLineNumber = "77"
66+
landmarkName = "processMatch(_:line:)"
67+
landmarkType = "5">
68+
</BreakpointContent>
69+
</BreakpointProxy>
70+
</Breakpoints>
71+
</Bucket>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>SchemeUserState</key>
6+
<dict>
7+
<key>ColorSenseRainbow.xcscheme_^#shared#^_</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>0</integer>
11+
</dict>
12+
</dict>
13+
<key>SuppressBuildableAutocreation</key>
14+
<dict>
15+
<key>56B480D91AE2D6CC00B507E4</key>
16+
<dict>
17+
<key>primary</key>
18+
<true/>
19+
</dict>
20+
</dict>
21+
</dict>
22+
</plist>

0 commit comments

Comments
 (0)