As I suggested earlier, I think QtCreator should try to ship with
default color schemes for a variety of other IDE's. This way those of
us who are coming over from another IDE can adapt more easily. I
wasn't sure how to contribute this but attached is my attempt at an
XCode style. It's not a perfect match just yet because QtCreator
doesn't support coloring class and function names. If that could be
added in the future I would be happy to update this style.
Another suggestion. I noticed QtCreator on the Mac is putting custom
styles under:
~/.config/Nokia/qtcreator/styles
That's really not standard Mac practice. That's a more Linuxy
approach. Instead custom styles should be placed under:
~/Library/Application Support/Qt Creator/styles
Similarly, QtCreator's preference file should not be under:
~/.config/Nokia/QtCreator.ini
and instead should be under:
~/Library/Preferences/com.nokia.com.QtCreator.plist
This can be accomplished by creating the QSettings object a little
differently, e.g.:
qApp->setOrganizationName("Nokia");
qApp->setOrganizationDomain("nokia.com");
qApp->setApplicationName("Qt Creator");
#ifdef Q_OS_MAC
QSettings::Format settingsFormat(QSettings::NativeFormat);
#else
QSettings::Format settingsFormat(QSettings::IniFormat);
#endif
QSettings* settings = new QSettings(settingsFormat,
QSettings::UserScope,
qApp->organizationName(),
qApp->applicationName());
settings->setFallbacksEnabled(false); //prevent from searching more
global like pref files...
Anyways, hopefully this style can be merged into the trunk somehow so
it'll ship with future versions of QtCreator, and I hope QtCreator can
behave more like a native Mac app in the future as well. That latter
should be more than possible since my Qt app does without any real
hassle.
-Will
<?xml version="1.0" encoding="UTF-8"?>
<style-scheme version="1.0" name="XCode">
<style name="AddedLine" foreground="#00aa00"/>
<style name="Comment" foreground="#007400"/>
<style name="CurrentLine" foreground="#000000" background="#e9f3ff"/>
<style name="CurrentLineNumber" foreground="#808080" bold="true"/>
<style name="DiffFile" foreground="#000080"/>
<style name="DiffLocation" foreground="#0000ff"/>
<style name="DisabledCode" foreground="#a0a0a4"/>
<style name="Doxygen.Comment" foreground="#007400"/>
<style name="Doxygen.Tag" foreground="#023d10"/>
<style name="Keyword" foreground="#aa0d91"/>
<style name="Label" foreground="#643820"/>
<style name="LineNumber" foreground="#bfbfbf" background="#ffffff"/>
<style name="Link" foreground="#0e0eff"/>
<style name="Number" foreground="#1c00cf"/>
<style name="Occurrences" foreground="#000000" background="#dcdcdc"/>
<style name="Occurrences.Rename" foreground="#000000" background="#ffc8c8"/>
<style name="Occurrences.Unused" foreground="#c0c0c0"/>
<style name="Operator" foreground="#000000"/>
<style name="Parentheses" foreground="#ff0000" background="#b4eeb4"/>
<style name="Preprocessor" foreground="#643820"/>
<style name="RemovedLine" foreground="#ff0000"/>
<style name="SearchResult" foreground="#000000" background="#ffef0b"/>
<style name="SearchScope" foreground="#000000" background="#e2efff"/>
<style name="Selection" foreground="#000000" background="#a8d8ff"/>
<style name="String" foreground="#c51a16"/>
<style name="Text" foreground="#000000" background="#ffffff"/>
<style name="Type" foreground="#5b2699"/>
<style name="VisualWhitespace" foreground="#c0c0c0"/>
</style-scheme>
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator