Xcode 的 JetBrains Intellij macOS 浅色主题

JetBrains Intellij macOS light theme for Xcode

我目前在我的 IntelliJ 中使用 macOS Light 主题。

当我按系统偏好设置 -> 外观和行为 -> 外观 -> 主题时,我可以看到 macOS Light。我也在我的机器上使用轻模式。

我对同一个主题很感兴趣,但是 Xcode。我在网上找不到任何东西。

所以我想问这个简短的问题,Xcode 设置是什么才能在 Xcode 中获得 theme/look?

也许已经有可供 Xcode 下载的版本?

(最好还有 iTerm2)

谢谢

遗憾的是,您实际上无法更改 Xcode IDE 本身的主题。但是,可以自定义编辑器和控制台的字体和颜色。我拼凑了一个非常相似的主题,其颜色与 macOS 上的 Intellij 基本浅色主题完全相同。您可以将下面的 xml 复制并粘贴到任何文本编辑器中,并将文件另存为:

YourThemeName.xccolortheme

然后将该文件拖放到 macOS 上的这个目录中:

~Library/Developer/Xcode/UserData/FontAndColorThemes

如果您对某些颜色、字体、font-weight、间距等不满意,可以前往 Xcode 进行更改,然后转到编辑器 > 编辑特定元素主题 > 编辑主题...

<?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 - 12.0</string>
    <key>DVTConsoleDebuggerOutputTextColor</key>
    <string>0 0 0 1</string>
    <key>DVTConsoleDebuggerOutputTextFont</key>
    <string>SFMono-Medium - 12.0</string>
    <key>DVTConsoleDebuggerPromptTextColor</key>
    <string>0.317071 0.437736 1 1</string>
    <key>DVTConsoleDebuggerPromptTextFont</key>
    <string>SFMono-Bold - 12.0</string>
    <key>DVTConsoleExectuableInputTextColor</key>
    <string>0 0 0 1</string>
    <key>DVTConsoleExectuableInputTextFont</key>
    <string>SFMono-Medium - 12.0</string>
    <key>DVTConsoleExectuableOutputTextColor</key>
    <string>0 0 0 1</string>
    <key>DVTConsoleExectuableOutputTextFont</key>
    <string>SFMono-Bold - 12.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>DVTFontAndColorVersion</key>
    <integer>1</integer>
    <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>.AppleSystemUIFontItalic - 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>.AppleSystemUIFont - 10.0</string>
    <key>DVTMarkupTextNormalColor</key>
    <string>0 0 0 1</string>
    <key>DVTMarkupTextNormalFont</key>
    <string>.AppleSystemUIFont - 10.0</string>
    <key>DVTMarkupTextOtherHeadingColor</key>
    <string>0 0 0 0.5</string>
    <key>DVTMarkupTextOtherHeadingFont</key>
    <string>.AppleSystemUIFont - 14.0</string>
    <key>DVTMarkupTextPrimaryHeadingColor</key>
    <string>0 0 0 1</string>
    <key>DVTMarkupTextPrimaryHeadingFont</key>
    <string>.AppleSystemUIFont - 24.0</string>
    <key>DVTMarkupTextSecondaryHeadingColor</key>
    <string>0 0 0 1</string>
    <key>DVTMarkupTextSecondaryHeadingFont</key>
    <string>.AppleSystemUIFont - 18.0</string>
    <key>DVTMarkupTextStrongColor</key>
    <string>0 0 0 1</string>
    <key>DVTMarkupTextStrongFont</key>
    <string>.AppleSystemUIFontBold - 10.0</string>
    <key>DVTScrollbarMarkerAnalyzerColor</key>
    <string>0.403922 0.372549 1 1</string>
    <key>DVTScrollbarMarkerBreakpointColor</key>
    <string>0.290196 0.290196 0.968627 1</string>
    <key>DVTScrollbarMarkerDiffColor</key>
    <string>0.556863 0.556863 0.556863 1</string>
    <key>DVTScrollbarMarkerDiffConflictColor</key>
    <string>0.968627 0.290196 0.290196 1</string>
    <key>DVTScrollbarMarkerErrorColor</key>
    <string>0.968627 0.290196 0.290196 1</string>
    <key>DVTScrollbarMarkerRuntimeIssueColor</key>
    <string>0.643137 0.509804 1 1</string>
    <key>DVTScrollbarMarkerWarningColor</key>
    <string>0.937255 0.717647 0.34902 1</string>
    <key>DVTSourceTextBackground</key>
    <string>1 1 1 1</string>
    <key>DVTSourceTextBlockDimBackgroundColor</key>
    <string>0.424672 0.424672 0.424672 1</string>
    <key>DVTSourceTextCurrentLineHighlightColor</key>
    <string>1 0.984314 0.898039 1</string>
    <key>DVTSourceTextInsertionPointColor</key>
    <string>0 0 0 1</string>
    <key>DVTSourceTextInvisiblesColor</key>
    <string>0.8 0.8 0.8 1</string>
    <key>DVTSourceTextSelectionColor</key>
    <string>0.392157 0.498039 0.717647 1</string>
    <key>DVTSourceTextSyntaxColors</key>
    <dict>
        <key>xcode.syntax.attribute</key>
        <string>0.505801 0.371396 0.012096 1</string>
        <key>xcode.syntax.character</key>
        <string>0.11 0 0.81 1</string>
        <key>xcode.syntax.comment</key>
        <string>0.568627 0.568627 0.568627 1</string>
        <key>xcode.syntax.comment.doc</key>
        <string>0.568627 0.568627 0.568627 1</string>
        <key>xcode.syntax.comment.doc.keyword</key>
        <string>0.568627 0.568627 0.568627 1</string>
        <key>xcode.syntax.declaration.other</key>
        <string>0.0862745 0.0862745 0.0862745 1</string>
        <key>xcode.syntax.declaration.type</key>
        <string>0.0862745 0.0862745 0.0862745 1</string>
        <key>xcode.syntax.identifier.class</key>
        <string>0.0862745 0.0862745 0.0862745 1</string>
        <key>xcode.syntax.identifier.class.system</key>
        <string>0.0862745 0.0862745 0.0862745 1</string>
        <key>xcode.syntax.identifier.constant</key>
        <string>0.0862745 0.0862745 0.0862745 1</string>
        <key>xcode.syntax.identifier.constant.system</key>
        <string>0.568627 0.568627 0.568627 1</string>
        <key>xcode.syntax.identifier.function</key>
        <string>0.0862745 0.0862745 0.0862745 1</string>
        <key>xcode.syntax.identifier.function.system</key>
        <string>0.0862745 0.0862745 0.0862745 1</string>
        <key>xcode.syntax.identifier.macro</key>
        <string>0.391471 0.220311 0.124457 1</string>
        <key>xcode.syntax.identifier.macro.system</key>
        <string>0.391471 0.220311 0.124457 1</string>
        <key>xcode.syntax.identifier.type</key>
        <string>0.0862745 0.0862745 0.0862745 1</string>
        <key>xcode.syntax.identifier.type.system</key>
        <string>0.0862745 0.0862745 0.0862745 1</string>
        <key>xcode.syntax.identifier.variable</key>
        <string>0.0862745 0.0862745 0.0862745 1</string>
        <key>xcode.syntax.identifier.variable.system</key>
        <string>0.447059 0.027451 0.533333 1</string>
        <key>xcode.syntax.keyword</key>
        <string>0.00784314 0.00392157 0.560784 1</string>
        <key>xcode.syntax.mark</key>
        <string>0.568627 0.568627 0.568627 1</string>
        <key>xcode.syntax.markup.code</key>
        <string>0.665 0.052 0.569 1</string>
        <key>xcode.syntax.number</key>
        <string>0.027451 0.0196078 0.972549 1</string>
        <key>xcode.syntax.plain</key>
        <string>0 0 0 0.85</string>
        <key>xcode.syntax.preprocessor</key>
        <string>0.391471 0.220311 0.124457 1</string>
        <key>xcode.syntax.string</key>
        <string>0.0588235 0.54902 0.117647 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 - 12.0</string>
        <key>xcode.syntax.character</key>
        <string>SFMono-Regular - 12.0</string>
        <key>xcode.syntax.comment</key>
        <string>SFMono-Regular - 12.0</string>
        <key>xcode.syntax.comment.doc</key>
        <string>HelveticaNeue - 12.0</string>
        <key>xcode.syntax.comment.doc.keyword</key>
        <string>SFMono-Bold - 12.0</string>
        <key>xcode.syntax.declaration.other</key>
        <string>SFMono-Regular - 12.0</string>
        <key>xcode.syntax.declaration.type</key>
        <string>SFMono-Regular - 12.0</string>
        <key>xcode.syntax.identifier.class</key>
        <string>SFMono-Regular - 12.0</string>
        <key>xcode.syntax.identifier.class.system</key>
        <string>SFMono-Regular - 12.0</string>
        <key>xcode.syntax.identifier.constant</key>
        <string>SFMono-Regular - 12.0</string>
        <key>xcode.syntax.identifier.constant.system</key>
        <string>SFMono-Regular - 12.0</string>
        <key>xcode.syntax.identifier.function</key>
        <string>SFMono-Regular - 12.0</string>
        <key>xcode.syntax.identifier.function.system</key>
        <string>SFMono-Regular - 12.0</string>
        <key>xcode.syntax.identifier.macro</key>
        <string>SFMono-Regular - 12.0</string>
        <key>xcode.syntax.identifier.macro.system</key>
        <string>SFMono-Regular - 12.0</string>
        <key>xcode.syntax.identifier.type</key>
        <string>SFMono-Regular - 12.0</string>
        <key>xcode.syntax.identifier.type.system</key>
        <string>SFMono-Regular - 12.0</string>
        <key>xcode.syntax.identifier.variable</key>
        <string>SFMono-Regular - 12.0</string>
        <key>xcode.syntax.identifier.variable.system</key>
        <string>SFMono-Semibold - 12.0</string>
        <key>xcode.syntax.keyword</key>
        <string>SFMono-Semibold - 12.0</string>
        <key>xcode.syntax.mark</key>
        <string>SFMono-Bold - 12.0</string>
        <key>xcode.syntax.markup.code</key>
        <string>SFMono-Regular - 12.0</string>
        <key>xcode.syntax.number</key>
        <string>SFMono-Regular - 12.0</string>
        <key>xcode.syntax.plain</key>
        <string>SFMono-Regular - 12.0</string>
        <key>xcode.syntax.preprocessor</key>
        <string>SFMono-Regular - 12.0</string>
        <key>xcode.syntax.string</key>
        <string>SFMono-Medium - 12.0</string>
        <key>xcode.syntax.url</key>
        <string>SFMono-Regular - 12.0</string>
    </dict>
</dict>
</plist>