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" 做编辑器风格

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值