Permalink
Browse files

Added Color Space info to iTerm2 templates

When loading colors from the profiles iTerm2 searches for the Color
Scheme key, if that isn't found they are converted to the Calibrated
color space.
Since the colors are defined in the sRGB color space, we need to specify
it, so they are loaded correctly.

Signed-off-by: Enrico Ghirardi <i@choco.me>
  • Loading branch information...
1 parent f6d71b0 commit 3c62c0c65612828ef9255ce3404dc9f5338a22a1 @choco choco committed Jan 15, 2014
@@ -8,6 +8,8 @@
<dict>
<key>Ansi 0 Color</key>
<dict>
+ <key>Color Space</key>
+ <string>sRGB</string>
<key>Blue Component</key>
<real><%= @base["00"]["srgb"][2] %></real>
<key>Green Component</key>
@@ -17,6 +19,8 @@
</dict>
<key>Ansi 1 Color</key>
<dict>
+ <key>Color Space</key>
+ <string>sRGB</string>
<key>Blue Component</key>
<real><%= @base["08"]["srgb"][2] %></real>
<key>Green Component</key>
@@ -26,6 +30,8 @@
</dict>
<key>Ansi 10 Color</key>
<dict>
+ <key>Color Space</key>
+ <string>sRGB</string>
<key>Blue Component</key>
<real><%= @base["0B"]["srgb"][2] %></real>
<key>Green Component</key>
@@ -35,6 +41,8 @@
</dict>
<key>Ansi 11 Color</key>
<dict>
+ <key>Color Space</key>
+ <string>sRGB</string>
<key>Blue Component</key>
<real><%= @base["0A"]["srgb"][2] %></real>
<key>Green Component</key>
@@ -44,6 +52,8 @@
</dict>
<key>Ansi 12 Color</key>
<dict>
+ <key>Color Space</key>
+ <string>sRGB</string>
<key>Blue Component</key>
<real><%= @base["0D"]["srgb"][2] %></real>
<key>Green Component</key>
@@ -53,6 +63,8 @@
</dict>
<key>Ansi 13 Color</key>
<dict>
+ <key>Color Space</key>
+ <string>sRGB</string>
<key>Blue Component</key>
<real><%= @base["0E"]["srgb"][2] %></real>
<key>Green Component</key>
@@ -62,6 +74,8 @@
</dict>
<key>Ansi 14 Color</key>
<dict>
+ <key>Color Space</key>
+ <string>sRGB</string>
<key>Blue Component</key>
<real><%= @base["0C"]["srgb"][2] %></real>
<key>Green Component</key>
@@ -71,6 +85,8 @@
</dict>
<key>Ansi 15 Color</key>
<dict>
+ <key>Color Space</key>
+ <string>sRGB</string>
<key>Blue Component</key>
<real><%= @base["07"]["srgb"][2] %></real>
<key>Green Component</key>
@@ -80,6 +96,8 @@
</dict>
<key>Ansi 2 Color</key>
<dict>
+ <key>Color Space</key>
+ <string>sRGB</string>
<key>Blue Component</key>
<real><%= @base["0B"]["srgb"][2] %></real>
<key>Green Component</key>
@@ -89,6 +107,8 @@
</dict>
<key>Ansi 3 Color</key>
<dict>
+ <key>Color Space</key>
+ <string>sRGB</string>
<key>Blue Component</key>
<real><%= @base["0A"]["srgb"][2] %></real>
<key>Green Component</key>
@@ -98,6 +118,8 @@
</dict>
<key>Ansi 4 Color</key>
<dict>
+ <key>Color Space</key>
+ <string>sRGB</string>
<key>Blue Component</key>
<real><%= @base["0D"]["srgb"][2] %></real>
<key>Green Component</key>
@@ -107,6 +129,8 @@
</dict>
<key>Ansi 5 Color</key>
<dict>
+ <key>Color Space</key>
+ <string>sRGB</string>
<key>Blue Component</key>
<real><%= @base["0E"]["srgb"][2] %></real>
<key>Green Component</key>
@@ -116,6 +140,8 @@
</dict>
<key>Ansi 6 Color</key>
<dict>
+ <key>Color Space</key>
+ <string>sRGB</string>
<key>Blue Component</key>
<real><%= @base["0C"]["srgb"][2] %></real>
<key>Green Component</key>
@@ -125,6 +151,8 @@
</dict>
<key>Ansi 7 Color</key>
<dict>
+ <key>Color Space</key>
+ <string>sRGB</string>
<key>Blue Component</key>
<real><%= @base["05"]["srgb"][2] %></real>
<key>Green Component</key>
@@ -134,6 +162,8 @@
</dict>
<key>Ansi 8 Color</key>
<dict>
+ <key>Color Space</key>
+ <string>sRGB</string>
<key>Blue Component</key>
<real><%= @base["03"]["srgb"][2] %></real>
<key>Green Component</key>
@@ -143,6 +173,8 @@
</dict>
<key>Ansi 9 Color</key>
<dict>
+ <key>Color Space</key>
+ <string>sRGB</string>
<key>Blue Component</key>
<real><%= @base["08"]["srgb"][2] %></real>
<key>Green Component</key>
@@ -152,6 +184,8 @@
</dict>
<key>Background Color</key>
<dict>
+ <key>Color Space</key>
+ <string>sRGB</string>
<key>Blue Component</key>
<real><%= @base["00"]["srgb"][2] %></real>
<key>Green Component</key>
@@ -161,6 +195,8 @@
</dict>
<key>Bold Color</key>
<dict>
+ <key>Color Space</key>
+ <string>sRGB</string>
<key>Blue Component</key>
<real><%= @base["05"]["srgb"][2] %></real>
<key>Green Component</key>
@@ -170,6 +206,8 @@
</dict>
<key>Cursor Color</key>
<dict>
+ <key>Color Space</key>
+ <string>sRGB</string>
<key>Blue Component</key>
<real><%= @base["05"]["srgb"][2] %></real>
<key>Green Component</key>
@@ -179,6 +217,8 @@
</dict>
<key>Cursor Text Color</key>
<dict>
+ <key>Color Space</key>
+ <string>sRGB</string>
<key>Blue Component</key>
<real><%= @base["00"]["srgb"][2] %></real>
<key>Green Component</key>
@@ -188,6 +228,8 @@
</dict>
<key>Foreground Color</key>
<dict>
+ <key>Color Space</key>
+ <string>sRGB</string>
<key>Blue Component</key>
<real><%= @base["05"]["srgb"][2] %></real>
<key>Green Component</key>
@@ -197,6 +239,8 @@
</dict>
<key>Selected Text Color</key>
<dict>
+ <key>Color Space</key>
+ <string>sRGB</string>
<key>Blue Component</key>
<real><%= @base["05"]["srgb"][2] %></real>
<key>Green Component</key>
@@ -206,6 +250,8 @@
</dict>
<key>Selection Color</key>
<dict>
+ <key>Color Space</key>
+ <string>sRGB</string>
<key>Blue Component</key>
<real><%= @base["02"]["srgb"][2] %></real>
<key>Green Component</key>
Oops, something went wrong. Retry.

0 comments on commit 3c62c0c

Please sign in to comment.