QtCreator editor color schemes



  • Thought it would be fun to see what color schemes people use for Creator.

    I like my code on a black background (found it's a bit less tiring for my eyes).

    My scheme file looks like this:
    @<?xml version="1.0" encoding="UTF-8"?>
    <style-scheme version="1.0" name="MyDarkTheme">
    <style name="AddedLine" foreground="#359f9f"/>
    <style name="Comment" foreground="#2d9a9e"/>
    <style name="CurrentLine" background="#232323"/>
    <style name="CurrentLineNumber" foreground="#aaaaaa" bold="true"/>
    <style name="DiffFile" foreground="#349e34"/>
    <style name="DiffLocation" foreground="#89892d"/>
    <style name="DisabledCode" foreground="#777777" background="#222222"/>
    <style name="Doxygen.Comment" foreground="#3dbbbb"/>
    <style name="Doxygen.Tag" foreground="#00a0a0"/>
    <style name="Field" foreground="#618f5c"/>
    <style name="Keyword" foreground="#acac39"/>
    <style name="Label" foreground="#bfbf3f"/>
    <style name="LineNumber" foreground="#888888" background="#232323"/>
    <style name="Link" foreground="#0041c4"/>
    <style name="Local" foreground="#696969"/>
    <style name="Number" foreground="#8393c0"/>
    <style name="Occurrences" background="#363636"/>
    <style name="Occurrences.Rename" foreground="#ffaaaa" background="#553636"/>
    <style name="Occurrences.Unused" foreground="#c0c0c0"/>
    <style name="Operator" foreground="#aaaaaa"/>
    <style name="Parentheses" foreground="#ff5555" background="#333333"/>
    <style name="Preprocessor" foreground="#917bbc"/>
    <style name="RemovedLine" foreground="#b43c3c"/>
    <style name="SearchResult" background="#555500"/>
    <style name="SearchScope" background="#222200"/>
    <style name="Selection" foreground="#000000" background="#aaaaaa"/>
    <style name="Static" foreground="#a69829"/>
    <style name="String" foreground="#485abe"/>
    <style name="Text" foreground="#a1a1a1" background="#000000"/>
    <style name="Type" foreground="#317f13"/>
    <style name="VirtualMethod" foreground="#a69174" italic="true"/>
    <style name="VisualWhitespace" foreground="#c0c0c0"/>
    </style-scheme>@


  • Moderators

    Color schemes, you mean?

    Just weighing in here. I've always just used the default. It works fine for me.



  • Sorry and thanks for correcting me :)



  • Mine is
    @
    <?xml version="1.0" encoding="UTF-8"?>
    <style-scheme version="1.0" name="My Dark Theme">
    <style name="AddedLine" foreground="#00aa00"/>
    <style name="Comment" foreground="#cd8b00"/>
    <style name="CurrentLine" foreground="#000000" background="#25252e"/>
    <style name="CurrentLineNumber" foreground="#a7a7f5" bold="true"/>
    <style name="DiffFile" foreground="#8484f3"/>
    <style name="DiffLocation" foreground="#0084ff"/>
    <style name="DisabledCode" foreground="#a0a0a4" italic="true"/>
    <style name="Doxygen.Comment" foreground="#737dd5"/>
    <style name="Doxygen.Tag" foreground="#4e5ab3"/>
    <style name="Field" foreground="#b83817"/>
    <style name="Keyword" foreground="#808bed"/>
    <style name="Label" foreground="#e76000"/>
    <style name="LineNumber" foreground="#8b8bcd" background="#2e2e2e"/>
    <style name="Link" foreground="#008cff"/>
    <style name="Local" foreground="#c9b81e"/>
    <style name="Number" foreground="#506bbd"/>
    <style name="Occurrences" foreground="#ffead5" background="#323232"/>
    <style name="Occurrences.Rename" foreground="#000000" background="#ffdedb"/>
    <style name="Occurrences.Unused" foreground="#808000"/>
    <style name="Operator" foreground="#409040"/>
    <style name="Parentheses" foreground="#ffff00" background="#2d2d32"/>
    <style name="Preprocessor" foreground="#19aa19"/>
    <style name="RemovedLine" foreground="#ff0000"/>
    <style name="SearchResult" foreground="#050505" background="#aa0000"/>
    <style name="SearchScope" foreground="#cfbfad"/>
    <style name="Selection" foreground="#ffffff" background="#678db2"/>
    <style name="Static" foreground="#c200c5"/>
    <style name="String" foreground="#ffcd8b"/>
    <style name="Text" foreground="#cfbfad" background="#1e1e27"/>
    <style name="Type" foreground="#ff8bff"/>
    <style name="VirtualMethod" foreground="#cfbfad" italic="true"/>
    <style name="VisualWhitespace" foreground="#c0c0c0"/>
    </style-scheme>

    @



  • Nice topic! I've been always using vim dark theme, but it seems Denis' one gives better contrast to eyes tiredness ratio so probably I'll pinch it :).


  • Moderators

    I wonder whether we can have a "best color scheme for Qt Creator competition" here:-)



  • sidewinder, I should say that mine scheme has some problems with colors, but if you have good screen then you will not notice them.



  • Default one works for me, I never felt inclined to change it.



  • A very interesting scheme Denis, it's way more custom than my fake vim modification :)



  • I have an other question.

    Is it possible to give a color to classes you made yourself? For example, I made a class: event. I use it many times: Event event = new Event();
    And since i got couple of those, it will come in handy to give em a specific colour (One color for all classes offcourse)
    But i like to give them a specific color, which will make my code more readable.

    But is it possible? Anyone an idea


  • Moderators

    It is not possible at this time. Contributions are welcome of course:-)


  • Moderators

    @Woody:

    Thanks for your input (and welcome to the forums!) But in the future, please be sure and start a new thread when you have separate questions, even if the topics are somewhat related.

    Thanks!



  • @Cobalt.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <style-scheme version="1.0" name="Cobalt">
    <style name="AddedLine" foreground="#2aa198"/>
    <style name="Comment" foreground="#0088ff" italic="true"/>
    <style name="CurrentLine"/>
    <style name="CurrentLineNumber" foreground="#586e75" bold="true"/>
    <style name="DiffFile" foreground="#859900"/>
    <style name="DiffLocation" foreground="#b58900"/>
    <style name="DisabledCode" foreground="#93a1a1"/>
    <style name="Doxygen.Comment" foreground="#0088ff" italic="true"/>
    <style name="Doxygen.Tag" foreground="#0059a8" italic="true"/>
    <style name="Field"/>
    <style name="Keyword" foreground="#026d10" bold="true"/>
    <style name="Label" foreground="#026d10" bold="true"/>
    <style name="LineNumber" foreground="#b3b3b3" background="#4c4c4c"/>
    <style name="Link" foreground="#268bd2"/>
    <style name="Local"/>
    <style name="Number" foreground="#3ad900"/>
    <style name="Occurrences" background="#93a1a1"/>
    <style name="Occurrences.Rename" foreground="#000000" background="#d65557"/>
    <style name="Occurrences.Unused" foreground="#808000"/>
    <style name="Operator"/>
    <style name="Parentheses" foreground="#dc322f"/>
    <style name="Preprocessor" foreground="#80a0c4"/>
    <style name="RemovedLine" foreground="#bd2a28"/>
    <style name="SearchResult" foreground="#ffffff" background="#b99e00"/>
    <style name="SearchScope" foreground="#000000" background="#e2efff"/>
    <style name="Selection" background="#b36539"/>
    <style name="Static" foreground="#859900" italic="true"/>
    <style name="String" foreground="#3ad900"/>
    <style name="Text" foreground="#e6e6e6" background="#002140"/>
    <style name="Type" foreground="#ff9d00"/>
    <style name="VirtualMethod" italic="true"/>
    <style name="VisualWhitespace" foreground="#c0c0c0"/>
    </style-scheme>
    @


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.