summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor
diff options
context:
space:
mode:
authorChristian Kamm <christian.d.kamm@nokia.com>2011-08-30 12:40:36 +0200
committerChristian Kamm <christian.d.kamm@nokia.com>2011-08-30 14:52:52 +0200
commit90a7786ddedc1c417895cc1a9b7c866afd59730b (patch)
tree9a11f74f9ed10f15b9673892cf256938ffae4c32 /src/plugins/texteditor
parent2c7a1104fab5631fe55a9baa8b99c08201fb6208 (diff)
downloadqt-creator-90a7786ddedc1c417895cc1a9b7c866afd59730b.tar.gz
QmlJS: Change default semantic highlighting colors.
Done-with: Carsten Owerfeldt Change-Id: I4705a4e35bd0bbd73200332d86854dbd34cb70c4 Reviewed-on: http://codereview.qt.nokia.com/3877 Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com>
Diffstat (limited to 'src/plugins/texteditor')
-rw-r--r--src/plugins/texteditor/texteditorsettings.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/plugins/texteditor/texteditorsettings.cpp b/src/plugins/texteditor/texteditorsettings.cpp
index 295832d3df..3c8ca76163 100644
--- a/src/plugins/texteditor/texteditorsettings.cpp
+++ b/src/plugins/texteditor/texteditorsettings.cpp
@@ -160,12 +160,16 @@ TextEditorSettings::TextEditorSettings(QObject *parent)
formatDescriptions.append(FormatDescription(QLatin1String(C_QML_EXTERNAL_ID), tr("QML External Id"), qmlExternalNameFormat));
formatDescriptions.append(FormatDescription(QLatin1String(C_QML_EXTERNAL_OBJECT_PROPERTY), tr("QML External Object Property"), qmlExternalNameFormat));
- Format jsFormat;
- jsFormat.setForeground(QColor(Qt::darkCyan).darker());
- jsFormat.setItalic(true);
- formatDescriptions.append(FormatDescription(QLatin1String(C_JS_SCOPE_VAR), tr("JavaScript Scope Var"), jsFormat));
- formatDescriptions.append(FormatDescription(QLatin1String(C_JS_IMPORT_VAR), tr("JavaScript Import"), jsFormat));
- formatDescriptions.append(FormatDescription(QLatin1String(C_JS_GLOBAL_VAR), tr("JavaScript Global Var"), jsFormat));
+ Format jsLocalFormat;
+ jsLocalFormat.setForeground(QColor(41, 133, 199)); // very light blue
+ jsLocalFormat.setItalic(true);
+ formatDescriptions.append(FormatDescription(QLatin1String(C_JS_SCOPE_VAR), tr("JavaScript Scope Var"), jsLocalFormat));
+
+ Format jsGlobalFormat;
+ jsGlobalFormat.setForeground(QColor(0, 85, 175)); // light blue
+ jsGlobalFormat.setItalic(true);
+ formatDescriptions.append(FormatDescription(QLatin1String(C_JS_IMPORT_VAR), tr("JavaScript Import"), jsGlobalFormat));
+ formatDescriptions.append(FormatDescription(QLatin1String(C_JS_GLOBAL_VAR), tr("JavaScript Global Var"), jsGlobalFormat));
formatDescriptions.append(FormatDescription(QLatin1String(C_KEYWORD), tr("Keyword"), Qt::darkYellow));
formatDescriptions.append(FormatDescription(QLatin1String(C_OPERATOR), tr("Operator")));