打开目录
$env:userprofile\AppData\Roaming\QtProject\qtcreator\styles
新建一个文件 VisualStudioDarkEnhanced.xml,内容如下:
<style-scheme version&#61;"1.0" name&#61;"Visual Studio Dark Enhanced"><style name&#61;"Text" foreground&#61;"#ebebeb" background&#61;"#1e1e1e"/><style name&#61;"Link"/><style name&#61;"Selection" background&#61;"#264f78"/><style name&#61;"LineNumber" foreground&#61;"#2b91af" background&#61;"#191919"/><style name&#61;"SearchResult"/><style name&#61;"SearchResultAlt1" foreground&#61;"#000033" background&#61;"#b6ccff"/><style name&#61;"SearchResultAlt2" foreground&#61;"#330000" background&#61;"#ffb6cc"/><style name&#61;"SearchScope"/><style name&#61;"Parentheses"/><style name&#61;"ParenthesesMismatch"/><style name&#61;"AutoComplete"/><style name&#61;"CurrentLine" background&#61;"#0f0f0f"/><style name&#61;"CurrentLineNumber" foreground&#61;"#2b91af" bold&#61;"true"/><style name&#61;"Occurrences"/><style name&#61;"Occurrences.Unused"/><style name&#61;"Occurrences.Rename"/><style name&#61;"Number" foreground&#61;"#afd99c"/><style name&#61;"String" foreground&#61;"#d69d85"/><style name&#61;"Type" foreground&#61;"#3dcaac"/><style name&#61;"Local" foreground&#61;"#9cdcfe"/><style name&#61;"Parameter" foreground&#61;"#9a9a9a"/><style name&#61;"Global"/><style name&#61;"Field"/><style name&#61;"Static" foreground&#61;"#b0df90"/><style name&#61;"VirtualMethod" foreground&#61;"#dcdcaa" italic&#61;"true"/><style name&#61;"Function" foreground&#61;"#dcdcaa"/><style name&#61;"Keyword" foreground&#61;"#398ecf"/><style name&#61;"PrimitiveType" foreground&#61;"#3a87d0"/><style name&#61;"Operator"/><style name&#61;"Overloaded Operator" foreground&#61;"#00677c"/><style name&#61;"Punctuation"/><style name&#61;"Preprocessor" foreground&#61;"#b853c1"/><style name&#61;"Label"/><style name&#61;"Comment" foreground&#61;"#57a64a"/><style name&#61;"Doxygen.Comment" foreground&#61;"#006400"/><style name&#61;"Doxygen.Tag" foreground&#61;"#5e7a71" bold&#61;"true"/><style name&#61;"VisualWhitespace"/><style name&#61;"QmlLocalId" italic&#61;"true"/><style name&#61;"QmlExternalId" italic&#61;"true"/><style name&#61;"QmlTypeId" foreground&#61;"#3dcaac"/><style name&#61;"QmlRootObjectProperty" italic&#61;"true"/><style name&#61;"QmlScopeObjectProperty" italic&#61;"true"/><style name&#61;"QmlExternalObjectProperty" italic&#61;"true"/><style name&#61;"JsScopeVar" italic&#61;"true"/><style name&#61;"JsImportVar" italic&#61;"true"/><style name&#61;"JsGlobalVar" italic&#61;"true"/><style name&#61;"QmlStateName" italic&#61;"true"/><style name&#61;"Binding" foreground&#61;"#b799b9"/><style name&#61;"DisabledCode"/><style name&#61;"AddedLine"/><style name&#61;"RemovedLine"/><style name&#61;"DiffFile"/><style name&#61;"DiffLocation"/><style name&#61;"DiffFileLine"/><style name&#61;"DiffContextLine"/><style name&#61;"DiffSourceLine"/><style name&#61;"DiffSourceChar"/><style name&#61;"DiffDestLine"/><style name&#61;"DiffDestChar"/><style name&#61;"LogChangeLine" foreground&#61;"#c00000"/><style name&#61;"LogAuthorName" foreground&#61;"#007af4"/><style name&#61;"LogCommitDate" foreground&#61;"#006600"/><style name&#61;"LogCommitHash" foreground&#61;"#ff0000"/><style name&#61;"LogCommitSubject"/><style name&#61;"LogDecoration" foreground&#61;"#ff00ff"/><style name&#61;"Warning" underlineColor&#61;"#ffbe00"/><style name&#61;"WarningContext" underlineColor&#61;"#ffbe00"/><style name&#61;"Error" underlineColor&#61;"#ff0000" underlineStyle&#61;"SingleUnderline"/><style name&#61;"ErrorContext" underlineColor&#61;"#ff0000" underlineStyle&#61;"DotLine"/><style name&#61;"Declaration" foreground&#61;"#dcdcaa"/><style name&#61;"FunctionDefinition" foreground&#61;"#dcdcaa"/><style name&#61;"OutputArgument" italic&#61;"true"/><style name&#61;"LastStyleSentinel"/>
style-scheme>