QtCreator4.9.0版本测试可用。
将对应的配色方案放置到对应的路径中,在QtCreaator的控件-选项-文本编辑器-字体和颜色可以进行选择,注意选择时的配色方案名是xml文件中的name属性值,例如下面的joweiDarkStyle。
例如我的具体路径如下:
D:\Qt\Qt5.12.3\Tools\QtCreator\share\qtcreator\styles
配色方案一:
<?xml version="1.0" encoding="UTF-8"?>
<style-scheme version="1.0" name="joweiDarkStyle">
<style name="Text" foreground="#aaaaaa" background="#000000"/>
<style name="Link" foreground="#0055ff"/>
<style name="Selection" foreground="#000000" background="#aaaaaa"/>
<style name="LineNumber" foreground="#888888" background="#232323"/>
<style name="SearchResult" background="#555500"/>
<style name="SearchScope" background="#222200"/>
<style name="Parentheses" foreground="#ff5555" background="#333333"/>
<style name="CurrentLine" background="#232323"/>
<style name="CurrentLineNumber" foreground="#aaaaaa" bold="true"/>
<style name="Occurrences" background="#363636"/>
<style name="Occurrences.Unused" foreground="#808000"/>
<style name="Occurrences.Rename" foreground="#ffaaaa" background="#553636"/>
<style name="Number" foreground="#ff55ff"/>
<style name="String" foreground="#ab0000" italic="true"/>
<style name="Type" foreground="#00de00"/>
<style name="Local" foreground="#8e8ed5"/>
<style name="Field" foreground="#3a7ab6" bold="true"/>
<style name="Static" foreground="#d30d9e" italic="true"/>
<style name="VirtualMethod" foreground="#9c6800" italic="true"/>
<style name="Function" foreground="#ff5500" bold="true"/>
<style name="Keyword" foreground="#e1e100" bold="true"/>
<style name="Operator" foreground="#aaaaaa"/>
<style name="Preprocessor" foreground="#5555ff"/>
<style name="Label" foreground="#e1e100"/>
<style name="Comment" foreground="#55ffff"/>
<style name="Doxygen.Comment" foreground="#55ffff"/>
<style name="Doxygen.Tag" foreground="#00a0a0"/>
<style name="VisualWhitespace" foreground="#c0c0c0"/>
<style name="QmlLocalId" italic="true"/>
<style name="QmlExternalId" foreground="#aaaaff" italic="true"/>
<style name="QmlTypeId" foreground="#4be14b"/>
<style name="QmlRootObjectProperty" italic="true"/>
<style name="QmlScopeObjectProperty" italic="true"/>
<style name="QmlExternalObjectProperty" foreground="#aaaaff" italic="true"/>
<style name="JsScopeVar" foreground="#8888ff" italic="true"/>
<style name="JsImportVar" foreground="#8888ff" italic="true"/>
<style name="JsGlobalVar" foreground="#8888ff" italic="true"/>
<style name="QmlStateName" italic="true"/>
<style name="Binding" foreground="#ff5555"/>
<style name="DisabledCode" foreground="#777777" background="#222222"/>
<style name="AddedLine" foreground="#55ffff"/>
<style name="RemovedLine" foreground="#ff5555"/>
<style name="DiffFile" foreground="#55ff55"/>
<style name="DiffLocation" foreground="#ffff55"/>
<style name="DiffFileLine" foreground="#000000" background="#d7d700"/>
<style name="DiffContextLine" foreground="#000000" background="#8aaab6"/>
<style name="DiffSourceLine" background="#8c2d2d"/>
<style name="DiffSourceChar" foreground="#000000" background="#c34141"/>
<style name="DiffDestLine" background="#2d8c2d"/>
<style name="DiffDestChar" foreground="#000000" background="#41c341"/>
</style-scheme>
配色方案二:
<?xml version="1.0" encoding="UTF-8"?>
<style-scheme version="1.0" name="Dracula_qwz">
<style name="Text" foreground="#f8f8f2" background="#282a36" bold="true"/>
<style name="Link" foreground="#8be9fd" underlineStyle="SingleUnderline"/>
<style name="Selection" background="#44475a"/>
<style name="LineNumber" foreground="#6272a4"/>
<style name="SearchResult" foreground="#d57544" bold="true"/>
<style name="SearchScope" foreground="#000000" background="#f8f8f2"/>
<style name="Parentheses" foreground="#f8f8f2" bold="true"/>
<style name="ParenthesesMismatch" foreground="#f8f8f2"/>
<style name="AutoComplete" foreground="#f8f8f2"/>
<style name="CurrentLine" foreground="#000000" background="#f8f8f2"/>
<style name="CurrentLineNumber" foreground="#f8f8f2"/>
<style name="Occurrences" foreground="#000000" background="#f8f8f2"/>
<style name="Occurrences.Unused" foreground="#f8f8f2"/>
<style name="Occurrences.Rename" foreground="#000000" background="#f8f8f2"/>
<style name="Number" foreground="#bd93f9"/>
<style name="String" foreground="#ffff00"/>
<style name="Type" foreground="#7ce4fb" bold="true"/>
<style name="Local" foreground="#ffffff" bold="true"/>
<style name="Global" foreground="#ffb86c"/>
<style name="Field" foreground="#ffffff" bold="true"/>
<style name="Static" foreground="#ffb86c"/>
<style name="VirtualMethod" foreground="#50fa7b" italic="true"/>
<style name="Function" foreground="#50fa7b" bold="true"/>
<style name="Keyword" foreground="#ff79c6" bold="true"/>
<style name="PrimitiveType" foreground="#7ce4fb" bold="true" italic="true"/>
<style name="Operator" foreground="#ffffff" bold="true"/>
<style name="Overloaded Operator" foreground="#ffaa00"/>
<style name="Punctuation"/>
<style name="Preprocessor" foreground="#ff79c6" bold="true"/>
<style name="Label" foreground="#ffb86c"/>
<style name="Comment" foreground="#6272a4" bold="true"/>
<style name="Doxygen.Comment" foreground="#6272a4"/>
<style name="Doxygen.Tag" foreground="#6272a4" bold="true"/>
<style name="VisualWhitespace" foreground="#6272a4"/>
<style name="QmlLocalId" foreground="#50fa7b" italic="true"/>
<style name="QmlExternalId" foreground="#ffb86c" italic="true"/>
<style name="QmlTypeId" foreground="#8be9fd"/>
<style name="QmlRootObjectProperty" foreground="#50fa7b" italic="true"/>
<style name="QmlScopeObjectProperty" foreground="#50fa7b" italic="true"/>
<style name="QmlExternalObjectProperty" foreground="#ffb86c" italic="true"/>
<style name="JsScopeVar" foreground="#bd93f9" italic="true"/>
<style name="JsImportVar" foreground="#8be9fd" italic="true"/>
<style name="JsGlobalVar" foreground="#8be9fd" italic="true"/>
<style name="QmlStateName" foreground="#50fa7b" italic="true"/>
<style name="Binding" foreground="#ff79c6"/>
<style name="DisabledCode" foreground="#6272a4"/>
<style name="AddedLine" foreground="#50fa7b"/>
<style name="RemovedLine" foreground="#ff5555"/>
<style name="DiffFile" foreground="#8be9fd"/>
<style name="DiffLocation" foreground="#ffb86c"/>
<style name="DiffFileLine" foreground="#282a36" background="#f1fa8c"/>
<style name="DiffContextLine" foreground="#282a36" background="#8be9fd"/>
<style name="DiffSourceLine" background="#ff5555"/>
<style name="DiffSourceChar" background="#cc2222"/>
<style name="DiffDestLine" foreground="#282a36" background="#50fa7b"/>
<style name="DiffDestChar" foreground="#282a36" background="#1dc748"/>
<style name="LogChangeLine" foreground="#ff5555"/>
<style name="Warning" underlineColor="#ffb86c" underlineStyle="SingleUnderline"/>
<style name="WarningContext" underlineColor="#ffb86c" underlineStyle="DotLine"/>
<style name="Error" underlineColor="#ff5555" underlineStyle="SingleUnderline"/>
<style name="ErrorContext" underlineColor="#ff5555" underlineStyle="DotLine"/>
<style name="Declaration" bold="true"/>
<style name="FunctionDefinition" bold="true"/>
<style name="OutputArgument" italic="true"/>
</style-scheme>