Qt Creator color scheme (MSVS2012 style!)

Hello minions!

[A little note first]. It seems it has taken forever for me to publish this post. In actual fact, it was actually finished back many moons ago. What happened was that, for some god forsaken reason, there appeared to have been a roll back. A little while after I published the article, the article was unpublished and the saved drafts rolled back to when I was only half way through writing this. This totally put me off, and so I basically went away from WordPress for some time, until now.

Any how, lets move on to the actual stuff.

Ever since I’ve got my hands on the new microsoft visual studio 2012 and all it’s goodies and junks, I’ve fallen in love with one thing. It’s dark theme!

vs2012_colorTheme_example

It’s the next best thing for those who have super-uber-sensitive eyes. Besides chicken cooked in any possible yummy ways.

vs2012_colorTheme_option its enabled here.

Now. Along side C++, I’m also a big fan of the Qt framework (its pronounced ‘cute’ apparently, but I like to call it Q.T.), and it’s ways, and I’ve been learning it with the book “An Introduction to Design Patterns in C++ with Qt” 2nd ed, by Ezust. A great read to add to my newbiew C++ and design patterns knowledge, alongside the obvious Qt materials.

Anyway, Qt comes with it’s own full feature, cross platform IDE, the Qt Creator (wiki link). Which natively integrates with the Qt framework. And I’ve been using it the past couple weeks.

Now going back on topic. The default color schemes for the text editor’s syntax highlighting are pretty ugly if you ask me. Thanks to my mega laziness, I’ve never bothered to fiddle with it, right until a couple days when I’ve finally bite the bullet, and decided to have a go at it!

qt_option setting the individual colour values

Screen Shot 2013-02-13 at 8.22.04 PMvs2012_colorTheme_example ta da, the final product!

Now, here comes the hardest part. locating where the color scheme file is placed/stored was a massive pain in the buttock, especially on the Mac.
Windows users  can find theirs in:
Users\<user name>\AppData\Roaming\QtProject\qtcreator\styles

It’s a bit trickier for Mac users. You would  have to first tell finder to show all the hidden files. Then you can go to here:
/<usr/mac name>/.config/QtProject/qtcreator/styles

There’s a couple tutorial that you can find on Google on how to get finder to show hidden files, so i won’t post it here.

Now of course, if you look closely and compare it with VS2012’s dark theme, they are not 100% the same. Beside the different ways the 2 IDE’s identify different syntax elements, I’ve added some personal touch to give more highlight and avoided as much white as possible.

At last. Here’s the link to the final xml file for the color scheme: [click me!]

ciao now.

 

[UPDATE: 2014/08/23]

  • primitive type colour has been set to blue as it is in MSVS.
  • doxygen comment colour has been set to the same green as regular comments but a little lighter.
Advertisements

15 thoughts on “Qt Creator color scheme (MSVS2012 style!)

  1. Thank you.
    Being way much lazier than you. I thought I would look around the internet or go back to default.
    Problem with the default is that it is colourless in places that you expect colour.

    1. I had a quick look and couldn’t find anything. I don’t think you can :P. I could be wrong though.

      Why do you want to have a background image?

Something to Say?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s