为Xcode自定义主题

我们知道,在Xcode的/Developer/Library/PrivateFramework/XcodeEdit.framework/Resources目录下默认有几个主题,如下:

 

但是这些默认的主题可能不是我们所喜欢和熟悉使用的,如果你想定制自己的主题,在这个目录下面放置自己定义的主题配置文件即可。

 

 

这些配置文件的后缀名字为*.xccolortheme并且是用标准的xml格式写的。

 

下面是我们自己配置的主题效果图:

 

 

配置文件的内容如下:

 

 

<?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>Colors</key>

<dict>

<key>Background</key>

<string>0.071 0.071 0.063</string>

<key>InsertionPoint</key>

<string>0.973 0.973 0.941</string>

<key>Selection</key>

<string>0.725 0.769 0.561</string>

<key>xcode.syntax.attribute</key>

<string>0.651 0.886 0.180</string>

<key>xcode.syntax.character</key>

<string>1.000 1.000 0.400</string>

<key>xcode.syntax.comment</key>

<string>0.459 0.443 0.369</string>

<key>xcode.syntax.comment.doc</key>

<string>0.459 0.443 0.369</string>

<key>xcode.syntax.comment.doc.keyword</key>

<string>0.459 0.443 0.369</string>

<key>xcode.syntax.identifier.class</key>

<string>0.263 0.631 0.529</string>

<key>xcode.syntax.identifier.class.system</key>

<string>0.110 0.631 1.000</string>

<key>xcode.syntax.identifier.constant</key>

<string>0.263 0.631 0.529</string>

<key>xcode.syntax.identifier.constant.system</key>

<string>0.251 0.631 0.529</string>

<key>xcode.syntax.identifier.function</key>

<string>0.651 0.886 0.180</string>

<key>xcode.syntax.identifier.function.system</key>

<string>0.651 0.886 0.180</string>

<key>xcode.syntax.identifier.macro</key>

<string>1.000 1.000 0.400</string>

<key>xcode.syntax.identifier.macro.system</key>

<string>1.000 1.000 0.400</string>

<key>xcode.syntax.identifier.type</key>

<string>0.651 0.886 0.180</string>

<key>xcode.syntax.identifier.type.system</key>

<string>0.651 0.886 0.180</string>

<key>xcode.syntax.identifier.variable</key>

<string>0.000 1.000 1.000</string>

<key>xcode.syntax.identifier.variable.system</key>

<string>0.000 1.000 1.000</string>

<key>xcode.syntax.keyword</key>

<string>0.800 0.659 0.412</string>

<key>xcode.syntax.number</key>

<string>0.682 0.506 1.000</string>

<key>xcode.syntax.plain</key>

<string>0.973 0.973 0.941</string>

<key>xcode.syntax.preprocessor</key>

<string>0.459 0.443 0.369</string>

<key>xcode.syntax.string</key>

<string>0.847 0.161 0.224</string>

<key>xcode.syntax.url</key>

<string>1.000 1.000 0.400</string>

<key>xcode.syntax.url.mail</key>

<string>1.000 1.000 0.400</string>

</dict>

<key>Fonts</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>Monaco - 12.0</string>

<key>xcode.syntax.comment.doc</key>

<string>Monaco - 12.0</string>

<key>xcode.syntax.comment.doc.keyword</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>


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值