mirror of
https://github.com/Hopiu/gruvbox-contrib.git
synced 2026-03-16 22:00:23 +00:00
Add Gruvbox dark and light for Qt Creator
This commit is contained in:
parent
bb665eecbf
commit
ecd7b94366
3 changed files with 142 additions and 0 deletions
35
qtcreator/README.md
Normal file
35
qtcreator/README.md
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# Gruvbox for Qt Creator
|
||||
|
||||
## How to Install
|
||||
|
||||
1. Open Qt Creator configuration folder. Its location depends on the platform<sup id="fn1">[1](#footnote1)</sup>,
|
||||
* On Linux and other Unix platforms, the path is `~/.config/QtProject/qtcreator`.
|
||||
* On Mac OS, the path is `~/.config/QtProject/qtcreator`.
|
||||
* On Windows, the path is `%APPDATA%/QtProject/qtcreator`.
|
||||
1. Create `styles` folder inside configuration folder. For example on Linux and Mac OS you can do
|
||||
|
||||
```
|
||||
mkdir -p ~/.config/QtProject/qtcreator/styles
|
||||
```
|
||||
1. Copy `gruvbox-dark.xml` and `gruvbox-light.xml` files into this folder.
|
||||
1. Restart Qt Creator.
|
||||
1. Open Qt Creator Preferences to activate the theme.
|
||||
|
||||
Alternatively, you can also create symbolic links to your copy of Qt Creator `*.xml` files inside `styles` folder.
|
||||
|
||||
For example, on Windows platform, open `cmd` with administrative privileges. Then type this command,
|
||||
|
||||
```
|
||||
mklink %appdata%\QtProject\qtcreator\styles\gruvbox-dark.xml %homepath%\Repos\gruvbox-contrib\qtcreator\gruvbox-dark.xml
|
||||
```
|
||||
|
||||
## Acknowledgements
|
||||
|
||||
Qt Creator themes were generated with the help of following projects,
|
||||
|
||||
1. [talha131/gruvbox-templates](https://github.com/talha131/gruvbox-templates)
|
||||
1. [konchunas/gruvbox-qtcreator](https://github.com/konchunas/gruvbox-qtcreator)
|
||||
|
||||
---
|
||||
|
||||
<a name="footnote1">**1**</a>: For details see [this StackOverflow question](http://stackoverflow.com/a/6743019/177116). [↩](#fn1)
|
||||
53
qtcreator/gruvbox-dark.xml
Normal file
53
qtcreator/gruvbox-dark.xml
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<style-scheme version="1.0" name="Gruvbox - Dark">
|
||||
<style name="Text" foreground="#ebdbb2" background="#282828"/>
|
||||
<style name="Link" foreground="#a89984"/>
|
||||
<style name="Selection" foreground="#665c54" background="#ebdbb2"/>
|
||||
<style name="LineNumber" foreground="#7c6f64"/>
|
||||
<style name="SearchResult" foreground="#282828" background="#fabd2f"/>
|
||||
<style name="SearchScope" foreground="#ebdbb2"/>
|
||||
<style name="Parentheses" foreground="#ebdbb2" background="#665c54" bold="true"/>
|
||||
<style name="CurrentLine" foreground="#ebdbb2" background="#3c3836"/>
|
||||
<style name="CurrentLineNumber" foreground="#fabd2f" background="#3c3836"/>
|
||||
<style name="Occurrences" foreground="#ebdbb2" background="#665c54" bold="true"/>
|
||||
<style name="Occurrences.Unused" foreground="#ebdbb2"/>
|
||||
<style name="Occurrences.Rename" foreground="#ebdbb2"/>
|
||||
<style name="Number" foreground="#d3869b"/>
|
||||
<style name="String" foreground="#b8bb26"/>
|
||||
<style name="Type" foreground="#fabd2f"/>
|
||||
<style name="Local" foreground="#ebdbb2"/>
|
||||
<style name="Field" foreground="#83a598"/>
|
||||
<style name="Static" foreground="#d3869b"/>
|
||||
<style name="VirtualMethod" foreground="#b8bb26" bold="true" italic="true"/>
|
||||
<style name="Function" foreground="#b8bb26" bold="true"/>
|
||||
<style name="Keyword" foreground="#fb4934"/>
|
||||
<style name="Operator" foreground="#ebdbb2"/>
|
||||
<style name="Preprocessor" foreground="#8ec07c"/>
|
||||
<style name="Label" foreground="#fb4934"/>
|
||||
<style name="Comment" foreground="#928374" italic="true"/>
|
||||
<style name="Doxygen.Comment" foreground="#fe8019"/>
|
||||
<style name="Doxygen.Tag" foreground="#ebdbb2" bold="true"/>
|
||||
<style name="VisualWhitespace" foreground="#3c3836"/>
|
||||
<style name="QmlLocalId" foreground="#b8bb26" bold="true" italic="true"/>
|
||||
<style name="QmlExternalId" foreground="#d3869b" italic="true"/>
|
||||
<style name="QmlTypeId" foreground="#fabd2f"/>
|
||||
<style name="QmlRootObjectProperty" foreground="#b8bb26" bold="true" italic="true"/>
|
||||
<style name="QmlScopeObjectProperty" foreground="#b8bb26" bold="true" italic="true"/>
|
||||
<style name="QmlExternalObjectProperty" foreground="#d3869b" italic="true"/>
|
||||
<style name="JsScopeVar" foreground="#ebdbb2" italic="true"/>
|
||||
<style name="JsImportVar" foreground="#ebdbb2" italic="true"/>
|
||||
<style name="JsGlobalVar" foreground="#ebdbb2" italic="true"/>
|
||||
<style name="QmlStateName" foreground="#b8bb26" bold="true"/>
|
||||
<style name="Binding" foreground="#fb4934"/>
|
||||
<style name="DisabledCode" foreground="#7c6f64"/>
|
||||
<style name="AddedLine" foreground="#282828" background="#b8bb26"/>
|
||||
<style name="RemovedLine" foreground="#282828" background="#fb4934"/>
|
||||
<style name="DiffFile" foreground="#282828" background="#fabd2f"/>
|
||||
<style name="DiffLocation" foreground="#282828" background="#fabd2f"/>
|
||||
<style name="DiffFileLine" foreground="#928374" background="#3c3836" italic="true"/>
|
||||
<style name="DiffContextLine" foreground="#928374" background="#3c3836" italic="true"/>
|
||||
<style name="DiffSourceLine" foreground="#282828" background="#8ec07c"/>
|
||||
<style name="DiffSourceChar" foreground="#282828" background="#fb4934"/>
|
||||
<style name="DiffDestLine" foreground="#282828" background="#8ec07c"/>
|
||||
<style name="DiffDestChar" foreground="#282828" background="#b8bb26"/>
|
||||
</style-scheme>
|
||||
54
qtcreator/gruvbox-light.xml
Normal file
54
qtcreator/gruvbox-light.xml
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<style-scheme version="1.0" name="Gruvbox - Light">
|
||||
<style name="Text" foreground="#3c3836" background="#fbf1c7"/>
|
||||
<style name="Link" foreground="#7c6f64"/>
|
||||
<style name="Selection" foreground="#bdae93" background="#3c3836"/>
|
||||
<style name="LineNumber" foreground="#a89984"/>
|
||||
<style name="SearchResult" foreground="#fbf1c7" background="#b57614"/>
|
||||
<style name="SearchScope" foreground="#3c3836"/>
|
||||
<style name="Parentheses" foreground="#3c3836" background="#bdae93" bold="true"/>
|
||||
<style name="CurrentLine" foreground="#3c3836" background="#ebdbb2"/>
|
||||
<style name="CurrentLineNumber" foreground="#b57614" background="#ebdbb2"/>
|
||||
<style name="Occurrences" foreground="#3c3836" background="#bdae93" bold="true"/>
|
||||
<style name="Occurrences.Unused" foreground="#3c3836"/>
|
||||
<style name="Occurrences.Rename" foreground="#3c3836"/>
|
||||
<style name="Number" foreground="#8f3f71"/>
|
||||
<style name="String" foreground="#79740e"/>
|
||||
<style name="Type" foreground="#b57614"/>
|
||||
<style name="Local" foreground="#3c3836"/>
|
||||
<style name="Field" foreground="#076678"/>
|
||||
<style name="Static" foreground="#8f3f71"/>
|
||||
<style name="VirtualMethod" foreground="#79740e" bold="true" italic="true"/>
|
||||
<style name="Function" foreground="#79740e" bold="true"/>
|
||||
<style name="Keyword" foreground="#9d0006"/>
|
||||
<style name="Operator" foreground="#3c3836"/>
|
||||
<style name="Preprocessor" foreground="#427b58"/>
|
||||
<style name="Label" foreground="#9d0006"/>
|
||||
<style name="Comment" foreground="#928374" italic="true"/>
|
||||
<style name="Doxygen.Comment" foreground="#af3a03"/>
|
||||
<style name="Doxygen.Tag" foreground="#3c3836" bold="true"/>
|
||||
<style name="VisualWhitespace" foreground="#ebdbb2"/>
|
||||
<style name="QmlLocalId" foreground="#79740e" bold="true" italic="true"/>
|
||||
<style name="QmlExternalId" foreground="#8f3f71" italic="true"/>
|
||||
<style name="QmlTypeId" foreground="#b57614"/>
|
||||
<style name="QmlRootObjectProperty" foreground="#79740e" bold="true" italic="true"/>
|
||||
<style name="QmlScopeObjectProperty" foreground="#79740e" bold="true" italic="true"/>
|
||||
<style name="QmlExternalObjectProperty" foreground="#8f3f71" italic="true"/>
|
||||
<style name="JsScopeVar" foreground="#3c3836" italic="true"/>
|
||||
<style name="JsImportVar" foreground="#3c3836" italic="true"/>
|
||||
<style name="JsGlobalVar" foreground="#3c3836" italic="true"/>
|
||||
<style name="QmlStateName" foreground="#79740e" bold="true"/>
|
||||
<style name="Binding" foreground="#9d0006"/>
|
||||
<style name="DisabledCode" foreground="#a89984"/>
|
||||
<style name="AddedLine" foreground="#fbf1c7" background="#79740e"/>
|
||||
<style name="RemovedLine" foreground="#fbf1c7" background="#9d0006"/>
|
||||
<style name="DiffFile" foreground="#fbf1c7" background="#b57614"/>
|
||||
<style name="DiffLocation" foreground="#fbf1c7" background="#b57614"/>
|
||||
<style name="DiffFileLine" foreground="#928374" background="#ebdbb2" italic="true"/>
|
||||
<style name="DiffContextLine" foreground="#928374" background="#ebdbb2" italic="true"/>
|
||||
<style name="DiffSourceLine" foreground="#fbf1c7" background="#427b58"/>
|
||||
<style name="DiffSourceChar" foreground="#fbf1c7" background="#9d0006"/>
|
||||
<style name="DiffDestLine" foreground="#fbf1c7" background="#427b58"/>
|
||||
<style name="DiffDestChar" foreground="#fbf1c7" background="#79740e"/>
|
||||
</style-scheme>
|
||||
|
||||
Loading…
Reference in a new issue