1.主题目录

Xcode主题文件拷贝到/Users/ksnowlv/Library/Developer/Xcode/UserData/FontAndColorThemes目录下。

image

那以dvtcolortheme格式是什么文件呢?iOS/Mac OS中的plist,实质xml文件。

打开Anubis.dvtcolortheme文件,其内容如下(部分内容限于篇幅省略…):

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
    
<?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.7653 0.699234 0.758969 1</string>
	<key>DVTConsoleDebuggerInputTextFont</key>
	<string>Menlo-Regular - 11.0</string>
	<key>DVTConsoleDebuggerOutputTextColor</key>
	<string>0.6431 0.5881 0.637824 1</string>
	<key>DVTConsoleDebuggerOutputTextFont</key>
	<string>Menlo-Regular - 11.0</string>
    ...
	<dict>
		<key>xcode.syntax.attribute</key>
		<string>0.335 0.456 0.488 1</string>
		<key>xcode.syntax.character</key>
		<string>0.616 0.499 0.951 1</string>
		<key>xcode.syntax.comment</key>
		<string>0.651579 0.600072 0.644145 1</string>
       ...
	</dict>
	<key>DVTSourceTextSyntaxFonts</key>
	<dict>
		<key>xcode.syntax.attribute</key>
		<string>SourceCodePro-Regular - 12.0</string>
		<key>xcode.syntax.character</key>
		<string>SourceCodePro-Regular - 12.0</string>
       ...
	</dict>
</dict>
</plist>

2.常用的Xcode主题

1.Solarized Light & Dark

image

2.tomorrow-theme

image

3.Twilight

image

4.Anubis

image

5.armadillu

image

6.today-xcode-theme

image

7.zenburn

image

8.Urban

image

9.Toy-Chest-Theme

image

10.Colour-and-standards

image