2012年10月11日木曜日

XcodeでWombat風のカラーテーマを使う方法

このエントリーをはてなブックマークに追加


XcodeでvimのWombat風のカラーテーマを使う方法についてです。

1. 下記、コードをwombat.dvtcolorthemeとして保存
2. {$HOME}/Library/Developer/Xcode/UserData/FontAndColorThemes/ にファイルを移動
3. XcodeのPreferences>Font & Colors>Themeよりwombatを選ぶ
4. フォントはSource Editorにて一括選択後、フォントを変更することで、一括変換可能



    DVTConsoleDebuggerInputTextColor
    0 0 0 1
    DVTConsoleDebuggerInputTextFont
    Menlo-Bold - 11.0
    DVTConsoleDebuggerOutputTextColor
    0 0 0 1
    DVTConsoleDebuggerOutputTextFont
    Menlo-Regular - 11.0
    DVTConsoleDebuggerPromptTextColor
    0.317071 0.437736 1 1
    DVTConsoleDebuggerPromptTextFont
    Menlo-Bold - 11.0
    DVTConsoleExectuableInputTextColor
    0 0 0 1
    DVTConsoleExectuableInputTextFont
    Menlo-Regular - 11.0
    DVTConsoleExectuableOutputTextColor
    0 0 0 1
    DVTConsoleExectuableOutputTextFont
    Menlo-Bold - 11.0
    DVTConsoleTextBackgroundColor
    0.999899 1 0.999842 1
    DVTConsoleTextInsertionPointColor
    0 0 0 1
    DVTConsoleTextSelectionColor
    0.576266 0.81005 1 1
    DVTDebuggerInstructionPointerColor
    0.705792 0.8 0.544 1
    DVTSourceTextBackground
    0.141 0.141 0.141
    DVTSourceTextBlockDimBackgroundColor
    0.5 0.5 0.5 1
    DVTSourceTextInsertionPointColor
    0.396 0.396 0.396
    DVTSourceTextInvisiblesColor
    0.5 0.5 0.5 1
    DVTSourceTextSelectionColor
    0.267 0.267 0.267
    DVTSourceTextSyntaxColors
    
        xcode.syntax.attribute
        0.906 0.965 0.855
        xcode.syntax.character
        0.584 0.894 0.329
        xcode.syntax.comment
        0.600 0.588 0.545
        xcode.syntax.comment.doc
        0.600 0.588 0.545
        xcode.syntax.comment.doc.keyword
        0.600 0.588 0.545
        xcode.syntax.identifier.class
        0.792 0.902 0.510
        xcode.syntax.identifier.class.system
        0.792 0.902 0.510
        xcode.syntax.identifier.constant
        0.898 0.471 0.427
        xcode.syntax.identifier.constant.system
        0.898 0.471 0.427
        xcode.syntax.identifier.function
        0.792 0.902 0.510
        xcode.syntax.identifier.function.system
        0.792 0.902 0.510
        xcode.syntax.identifier.macro
        0.898 0.471 0.427
        xcode.syntax.identifier.macro.system
        0.898 0.471 0.427
        xcode.syntax.identifier.type
        0.792 0.902 0.510
        xcode.syntax.identifier.type.system
        0.792 0.902 0.510
        xcode.syntax.identifier.variable
        0.792 0.902 0.510
        xcode.syntax.identifier.variable.system
        0.792 0.902 0.510
        xcode.syntax.keyword
        0.541 0.776 0.949
        xcode.syntax.mark
        1.000 0.500 0.000
        xcode.syntax.number
        0.898 0.471 0.427
        xcode.syntax.plain
        1.000 1.000 1.000
        xcode.syntax.preprocessor
        0.894 0.471 0.427
        xcode.syntax.string
        0.584 0.894 0.329
        xcode.syntax.url
        0.906 0.965 0.855
        xcode.syntax.url.mail
        0.100 0.100 1.000
    
    DVTSourceTextSyntaxFonts
    
        xcode.syntax.attribute
        Monaco - 11.0
        xcode.syntax.character
        Monaco - 11.0
        xcode.syntax.comment
        Monaco - 11.0
        xcode.syntax.comment.doc
        Monaco - 11.0
        xcode.syntax.comment.doc.keyword
        Monaco - 11.0
        xcode.syntax.keyword
        Monaco - 11.0
        xcode.syntax.number
        Monaco - 11.0
        xcode.syntax.plain
        Monaco - 11.0
        xcode.syntax.preprocessor
        Monaco - 11.0
        xcode.syntax.string
        Monaco - 11.0
        xcode.syntax.url
        Monaco - 11.0
    


上記ファイルは、
// TODO: better name : wombat風Xcodeカラーテーマ - // TODO: better name
をXcode4用に修正したものです。