Qt creator 自定义类gVim风格

<?xml version="1.0" encoding="UTF-8"?>
<style-scheme version="1.0" name="MyTheme">
  <style name="Text" foreground="#f0f0f0" background="#242424"/>
  <style name="Link" foreground="#0055ff"/>
  <style name="Selection" foreground="#000000" background="#aaaaaa"/>
  <style name="LineNumber" foreground="#857b6f" background="#444444"/>
  <style name="SearchResult" background="#ffaa00"/>
  <style name="SearchScope" background="#222200"/>
  <style name="Parentheses" foreground="#ffffff" background="#333333"/>
  <style name="ParenthesesMismatch" background="#800080"/>
  <style name="CurrentLine" background="#232323"/>
  <style name="CurrentLineNumber" foreground="#857b6f" background="#444444"/>
  <style name="Occurrences" background="#363636"/>
  <style name="Occurrences.Unused" underlineColor="#808000" underlineStyle="SingleUnderline"/>
  <style name="Occurrences.Rename" foreground="#ffaaaa" background="#553636"/>
  <style name="Number" foreground="#50d6de"/>
  <style name="String" foreground="#50d6de"/>
  <style name="Type" foreground="#93e66e"/>
  <style name="Local"/>
  <style name="Field"/>
  <style name="Static" foreground="#50d6de"/>
  <style name="VirtualMethod"/>
  <style name="Function"/>
  <style name="Keyword" foreground="#ffff55"/>
  <style name="PrimitiveType" foreground="#1972d8"/>
  <style name="Operator" foreground="#aaaaaa"/>
  <style name="Preprocessor" foreground="#efefaf"/>
  <style name="Label" foreground="#ffff55"/>
  <style name="Comment" foreground="#808080"/>
  <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="#55ff55"/>
  <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 name="LogChangeLine" foreground="#808000"/>
  <style name="Warning" underlineColor="#ffbe00" underlineStyle="SingleUnderline"/>
  <style name="WarningContext" underlineColor="#ffbe00" underlineStyle="DotLine"/>
  <style name="Error" underlineColor="#ff0000" underlineStyle="SingleUnderline"/>
  <style name="ErrorContext" underlineColor="#ff0000" underlineStyle="DotLine"/>
</style-scheme>

将上面的代码保存为 mytheme.xml 格式文件,放到 qt安装目录\Tools\QtCreator\share\qtcreator\styles 下即可

在 工具-设置中选择使用你的 "mytheme" 做编辑器风格

发布了38 篇原创文章 · 获赞 23 · 访问量 4万+

猜你喜欢

转载自blog.csdn.net/u013662665/article/details/103548576
今日推荐