Xcode iTerm2 添加Cobalt theme

最近在潜心研究Rails,对TextMate的cobalt theme非常喜欢,就想把这个主题安装到Xcode上面去,搜了一下,还真有和我一样喜欢的人,见下面链接。 http://audioplastic.org/blog/2013/01/09/cobalt/

我在这就再转述一遍,做个保存吧。

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>DVTConsoleDebuggerInputTextColor</key> <string>0.908811 0.908811 0.908811 1</string> <key>DVTConsoleDebuggerInputTextFont</key> <string>Menlo-Bold - 11.0</string> <key>DVTConsoleDebuggerOutputTextColor</key> <string>0.851394 0.851394 0.851394 1</string> <key>DVTConsoleDebuggerOutputTextFont</key> <string>Menlo-Regular - 11.0</string> <key>DVTConsoleDebuggerPromptTextColor</key> <string>0.38565 0.777779 1 1</string> <key>DVTConsoleDebuggerPromptTextFont</key> <string>Menlo-Bold - 11.0</string> <key>DVTConsoleExectuableInputTextColor</key> <string>0.971012 0.971012 0.971012 1</string> <key>DVTConsoleExectuableInputTextFont</key> <string>Menlo-Regular - 11.0</string> <key>DVTConsoleExectuableOutputTextColor</key> <string>0.971012 0.971012 0.971012 1</string> <key>DVTConsoleExectuableOutputTextFont</key> <string>Menlo-Bold - 11.0</string> <key>DVTConsoleTextBackgroundColor</key> <string>0 0 0 1</string> <key>DVTConsoleTextInsertionPointColor</key> <string>0 0 0 1</string> <key>DVTConsoleTextSelectionColor</key> <string>0.576266 0.81005 1 1</string> <key>DVTDebuggerInstructionPointerColor</key> <string>0.705792 0.8 0.544 1</string> <key>DVTSourceTextBackground</key> <string>0 0.133 0.251 1</string> <key>DVTSourceTextBlockDimBackgroundColor</key> <string>0.5 0.5 0.5 1</string> <key>DVTSourceTextInsertionPointColor</key> <string>1 1 1 1</string> <key>DVTSourceTextInvisiblesColor</key> <string>0.5 0.5 0.5 1</string> <key>DVTSourceTextSelectionColor</key> <string>0.702 0.396 0.224 1</string> <key>DVTSourceTextSyntaxColors</key> <dict> <key>xcode.syntax.attribute</key> <string>0.537 0.588 0.659 1</string> <key>xcode.syntax.character</key> <string>1 0.384 0.549 1</string> <key>xcode.syntax.comment</key> <string>0 0.533 1 1</string> <key>xcode.syntax.comment.doc</key> <string>0 0.533 1 1</string> <key>xcode.syntax.comment.doc.keyword</key> <string>0 0.533 1 1</string> <key>xcode.syntax.identifier.class</key> <string>0.261 0.626 0.982 1</string> <key>xcode.syntax.identifier.class.system</key> <string>1 0.867 0 1</string> <key>xcode.syntax.identifier.constant</key> <string>0.261 0.626 0.982 1</string> <key>xcode.syntax.identifier.constant.system</key> <string>1 0.384 0.549 1</string> <key>xcode.syntax.identifier.function</key> <string>0.261 0.626 0.982 1</string> <key>xcode.syntax.identifier.function.system</key> <string>1 0.867 0 1</string> <key>xcode.syntax.identifier.macro</key> <string>0.537 0.588 0.659 1</string> <key>xcode.syntax.identifier.macro.system</key> <string>1 0.616 0 1</string> <key>xcode.syntax.identifier.type</key> <string>0.261 0.626 0.982 1</string> <key>xcode.syntax.identifier.type.system</key> <string>0.502 1 0.51 1</string> <key>xcode.syntax.identifier.variable</key> <string>0.261 0.626 0.982 1</string> <key>xcode.syntax.identifier.variable.system</key> <string>0.8 0.8 0.8 1</string> <key>xcode.syntax.keyword</key> <string>1 0.616 0 1</string> <key>xcode.syntax.number</key> <string>1 0.384 0.549 1</string> <key>xcode.syntax.plain</key> <string>1 1 1 1</string> <key>xcode.syntax.preprocessor</key> <string>0.665 0.992 0.997 1</string> <key>xcode.syntax.string</key> <string>0.227 0.851 0 1</string> <key>xcode.syntax.url</key> <string>0.227 0.851 0 1</string> </dict> <key>DVTSourceTextSyntaxFonts</key> <dict> <key>xcode.syntax.attribute</key> <string>Monaco - 12.0</string> <key>xcode.syntax.character</key> <string>Monaco - 12.0</string> <key>xcode.syntax.comment</key> <string>Menlo-Italic - 12.0</string> <key>xcode.syntax.comment.doc</key> <string>Menlo-Italic - 12.0</string> <key>xcode.syntax.comment.doc.keyword</key> <string>Menlo-Italic - 12.0</string> <key>xcode.syntax.identifier.class</key> <string>Monaco - 12.0</string> <key>xcode.syntax.identifier.class.system</key> <string>Monaco - 12.0</string> <key>xcode.syntax.identifier.constant</key> <string>Monaco - 12.0</string> <key>xcode.syntax.identifier.constant.system</key> <string>Monaco - 12.0</string> <key>xcode.syntax.identifier.function</key> <string>Monaco - 12.0</string> <key>xcode.syntax.identifier.function.system</key> <string>Monaco - 12.0</string> <key>xcode.syntax.identifier.macro</key> <string>Monaco - 12.0</string> <key>xcode.syntax.identifier.macro.system</key> <string>Monaco - 12.0</string> <key>xcode.syntax.identifier.type</key> <string>Monaco - 12.0</string> <key>xcode.syntax.identifier.type.system</key> <string>Monaco - 12.0</string> <key>xcode.syntax.identifier.variable</key> <string>Monaco - 12.0</string> <key>xcode.syntax.identifier.variable.system</key> <string>Monaco - 12.0</string> <key>xcode.syntax.keyword</key> <string>Monaco - 12.0</string> <key>xcode.syntax.number</key> <string>Monaco - 12.0</string> <key>xcode.syntax.plain</key> <string>Monaco - 12.0</string> <key>xcode.syntax.preprocessor</key> <string>Monaco - 12.0</string> <key>xcode.syntax.string</key> <string>Monaco - 12.0</string> <key>xcode.syntax.url</key> <string>Monaco - 12.0</string> </dict> </dict> </plist>

拷贝以上内容,保存为cobalt.dvtcolortheme文件,放到~/Desktop/cobalt.dvtcolortheme ~/Library/Developer/Xcode/UserData/FontAndColorThemes/即可,然后退出Xcode,重启Xcode就可以选择这个主题,我用的是Menlo 14号字体粗体。

iTerm2也已经有人配置出来了 https://github.com/phocke/cobalt-iterm

你可能感兴趣的:(Xcode iTerm2 添加Cobalt theme)