本文共 1155 字,大约阅读时间需要 3 分钟。
most of steps have been listed on: https://github.com/mervick/Qt-Creator-Darcula
1. download the theme file from the website
2. there are 2 files and 1 folder we need, namely, darcula.css, darcula.xml and images
3. put darculal.xml and folder images under /opt/qtcreator-3.6.0/share/qtcreator/styles
4. create a new folder named stylesheet under /opt/qtcreator-3.6.0/share/qtcreator/ and then put the darcula.css into this stylesheet folder.
5. set the startup parameter
open /usr/share/applications/Qt-Creator.desktop in gedit and change its contents to:
[Desktop Entry]Version=1.0Encoding=UTF-8Type=ApplicationName=QtCreatorComment=QtCreatorNoDsiplay=trueExec=/opt/qtcreator-3.6.0/bin/qtcreator %f -stylesheet=/opt/qtcreator-3.6.0/share/qtcreator/stylesheet/darcula.cssIcon=/opt/Qt5.5.1/Examples/Qt-5.5/location/mapviewer/resources/icon.pngName[en_US]=Qt-Creatorif you don't have this file, create one by yourself. how to create? pls refer to http://blog.csdn.net/seamanj/article/details/50595966
6. open qtcreator 3.6.0, tool->options->test editor->environment->text editor->color scheme
choose the one we just added
done!
the final effect looks like: