美文网首页工具文章
Xcode:修改主题

Xcode:修改主题

作者: 春暖花已开 | 来源:发表于2019-03-31 11:05 被阅读0次
    说明
    首次发布 2019年03月31日
    最近更新 2019年03月31日

    背景:自加入iOS开发以来,一直使用Xcode的默认主题。可自升级到Xcode10.2之后,变化就稍微有点大了。于是,就想办法更换成以前的主题。

    步骤:
      1. 进入到以前Xcode的主题文件夹:
    ~/Library/Developer/Xcode/UserData/FontAndColorThemes/
    

    注:如果该文件夹不存在,直接在对应的目录下新建一个。

      1. 将我们想要的主题(比如我的是 Custom.xccolortheme )拷贝到上面说的目录下,重启并在Xcode偏好设置里应用该主题就可以了。

    以下是我使用的主题 Custom.xccolortheme 配置:

    <?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 0 0 1</string>
        <key>DVTConsoleDebuggerInputTextFont</key>
        <string>SFMono-Bold - 11.0</string>
        <key>DVTConsoleDebuggerOutputTextColor</key>
        <string>0 0 0 1</string>
        <key>DVTConsoleDebuggerOutputTextFont</key>
        <string>SFMono-Regular - 11.0</string>
        <key>DVTConsoleDebuggerPromptTextColor</key>
        <string>0.317071 0.437736 1 1</string>
        <key>DVTConsoleDebuggerPromptTextFont</key>
        <string>SFMono-Bold - 11.0</string>
        <key>DVTConsoleExectuableInputTextColor</key>
        <string>0 0 0 1</string>
        <key>DVTConsoleExectuableInputTextFont</key>
        <string>SFMono-Regular - 11.0</string>
        <key>DVTConsoleExectuableOutputTextColor</key>
        <string>0 0 0 1</string>
        <key>DVTConsoleExectuableOutputTextFont</key>
        <string>SFMono-Bold - 11.0</string>
        <key>DVTConsoleTextBackgroundColor</key>
        <string>1 1 1 1</string>
        <key>DVTConsoleTextInsertionPointColor</key>
        <string>0 0 0 1</string>
        <key>DVTConsoleTextSelectionColor</key>
        <string>0.642038 0.802669 0.999195 1</string>
        <key>DVTDebuggerInstructionPointerColor</key>
        <string>0.705792 0.8 0.544 1</string>
        <key>DVTLineSpacing</key>
        <real>1.1000000238418579</real>
        <key>DVTMarkupTextBackgroundColor</key>
        <string>0.96 0.96 0.96 1</string>
        <key>DVTMarkupTextBorderColor</key>
        <string>0.8832 0.8832 0.8832 1</string>
        <key>DVTMarkupTextCodeFont</key>
        <string>SFMono-Regular - 10.0</string>
        <key>DVTMarkupTextEmphasisColor</key>
        <string>0 0 0 1</string>
        <key>DVTMarkupTextEmphasisFont</key>
        <string>.SFNSText-Italic - 10.0</string>
        <key>DVTMarkupTextInlineCodeColor</key>
        <string>0 0 0 0.7</string>
        <key>DVTMarkupTextLinkColor</key>
        <string>0.055 0.055 1 1</string>
        <key>DVTMarkupTextLinkFont</key>
        <string>.SFNSText - 10.0</string>
        <key>DVTMarkupTextNormalColor</key>
        <string>0 0 0 1</string>
        <key>DVTMarkupTextNormalFont</key>
        <string>.SFNSText - 10.0</string>
        <key>DVTMarkupTextOtherHeadingColor</key>
        <string>0 0 0 0.5</string>
        <key>DVTMarkupTextOtherHeadingFont</key>
        <string>.SFNSText - 14.0</string>
        <key>DVTMarkupTextPrimaryHeadingColor</key>
        <string>0 0 0 1</string>
        <key>DVTMarkupTextPrimaryHeadingFont</key>
        <string>.SFNSDisplay - 24.0</string>
        <key>DVTMarkupTextSecondaryHeadingColor</key>
        <string>0 0 0 1</string>
        <key>DVTMarkupTextSecondaryHeadingFont</key>
        <string>.SFNSText - 18.0</string>
        <key>DVTMarkupTextStrongColor</key>
        <string>0 0 0 1</string>
        <key>DVTMarkupTextStrongFont</key>
        <string>.SFNSText-Bold - 10.0</string>
        <key>DVTSourceTextBackground</key>
        <string>0.8 0.909804 0.811765 1</string>
        <key>DVTSourceTextBlockDimBackgroundColor</key>
        <string>0.5 0.5 0.5 1</string>
        <key>DVTSourceTextCurrentLineHighlightColor</key>
        <string>0.802994 0.950667 0.928193 1</string>
        <key>DVTSourceTextInsertionPointColor</key>
        <string>0 0 0 1</string>
        <key>DVTSourceTextInvisiblesColor</key>
        <string>0.5 0.5 0.5 1</string>
        <key>DVTSourceTextSelectionColor</key>
        <string>0.642038 0.802669 0.999195 1</string>
        <key>DVTSourceTextSyntaxColors</key>
        <dict>
            <key>xcode.syntax.attribute</key>
            <string>0.512 0.423 0.157 1</string>
            <key>xcode.syntax.character</key>
            <string>0.11 0 0.81 1</string>
            <key>xcode.syntax.comment</key>
            <string>0 0.456 0 1</string>
            <key>xcode.syntax.comment.doc</key>
            <string>0 0.456 0 1</string>
            <key>xcode.syntax.comment.doc.keyword</key>
            <string>0 0.456 0 1</string>
            <key>xcode.syntax.identifier.class</key>
            <string>0.247 0.431 0.456 1</string>
            <key>xcode.syntax.identifier.class.system</key>
            <string>0.359 0.149 0.601 1</string>
            <key>xcode.syntax.identifier.constant</key>
            <string>0.149 0.278 0.294 1</string>
            <key>xcode.syntax.identifier.constant.system</key>
            <string>0.181 0.052 0.431 1</string>
            <key>xcode.syntax.identifier.function</key>
            <string>0.149 0.278 0.294 1</string>
            <key>xcode.syntax.identifier.function.system</key>
            <string>0.181 0.052 0.431 1</string>
            <key>xcode.syntax.identifier.macro</key>
            <string>0.391 0.22 0.125 1</string>
            <key>xcode.syntax.identifier.macro.system</key>
            <string>0.391 0.22 0.125 1</string>
            <key>xcode.syntax.identifier.type</key>
            <string>0.247 0.431 0.456 1</string>
            <key>xcode.syntax.identifier.type.system</key>
            <string>0.359 0.149 0.601 1</string>
            <key>xcode.syntax.identifier.variable</key>
            <string>0.247 0.431 0.456 1</string>
            <key>xcode.syntax.identifier.variable.system</key>
            <string>0.359 0.149 0.601 1</string>
            <key>xcode.syntax.keyword</key>
            <string>0.665 0.052 0.569 1</string>
            <key>xcode.syntax.number</key>
            <string>0.11 0 0.81 1</string>
            <key>xcode.syntax.plain</key>
            <string>0 0 0 1</string>
            <key>xcode.syntax.preprocessor</key>
            <string>0.391 0.22 0.125 1</string>
            <key>xcode.syntax.string</key>
            <string>0.77 0.102 0.086 1</string>
            <key>xcode.syntax.url</key>
            <string>0.055 0.055 1 1</string>
        </dict>
        <key>DVTSourceTextSyntaxFonts</key>
        <dict>
            <key>xcode.syntax.attribute</key>
            <string>SFMono-Regular - 16.0</string>
            <key>xcode.syntax.character</key>
            <string>SFMono-Regular - 16.0</string>
            <key>xcode.syntax.comment</key>
            <string>SFMono-Regular - 16.0</string>
            <key>xcode.syntax.comment.doc</key>
            <string>SFMono-Regular - 16.0</string>
            <key>xcode.syntax.comment.doc.keyword</key>
            <string>SFMono-Regular - 16.0</string>
            <key>xcode.syntax.identifier.class</key>
            <string>SFMono-Regular - 16.0</string>
            <key>xcode.syntax.identifier.class.system</key>
            <string>SFMono-Regular - 16.0</string>
            <key>xcode.syntax.identifier.constant</key>
            <string>SFMono-Regular - 16.0</string>
            <key>xcode.syntax.identifier.constant.system</key>
            <string>SFMono-Regular - 16.0</string>
            <key>xcode.syntax.identifier.function</key>
            <string>SFMono-Regular - 16.0</string>
            <key>xcode.syntax.identifier.function.system</key>
            <string>SFMono-Regular - 16.0</string>
            <key>xcode.syntax.identifier.macro</key>
            <string>SFMono-Regular - 16.0</string>
            <key>xcode.syntax.identifier.macro.system</key>
            <string>SFMono-Regular - 16.0</string>
            <key>xcode.syntax.identifier.type</key>
            <string>SFMono-Regular - 16.0</string>
            <key>xcode.syntax.identifier.type.system</key>
            <string>SFMono-Regular - 16.0</string>
            <key>xcode.syntax.identifier.variable</key>
            <string>SFMono-Regular - 16.0</string>
            <key>xcode.syntax.identifier.variable.system</key>
            <string>SFMono-Regular - 16.0</string>
            <key>xcode.syntax.keyword</key>
            <string>SFMono-Regular - 16.0</string>
            <key>xcode.syntax.number</key>
            <string>SFMono-Regular - 16.0</string>
            <key>xcode.syntax.plain</key>
            <string>SFMono-Regular - 16.0</string>
            <key>xcode.syntax.preprocessor</key>
            <string>SFMono-Regular - 16.0</string>
            <key>xcode.syntax.string</key>
            <string>SFMono-Regular - 16.0</string>
            <key>xcode.syntax.url</key>
            <string>SFMono-Regular - 16.0</string>
        </dict>
    </dict>
    </plist>
    

    相关文章

      网友评论

        本文标题:Xcode:修改主题

        本文链接:https://www.haomeiwen.com/subject/fxyybqtx.html