diff options
author | Jarek Kobus <jkobus@trolltech.com> | 2009-04-27 12:22:14 (GMT) |
---|---|---|
committer | Jarek Kobus <jkobus@trolltech.com> | 2009-04-27 12:26:34 (GMT) |
commit | 96a27e24eec9356e45f1a6b6ff641a9afab24a39 (patch) | |
tree | aa059edb723ee67b4ff9dc4f9a792efa0d65c4f0 /tools/designer/src/components/propertyeditor/propertyeditor.cpp | |
parent | 10194aafd10824fe1919aa44083224e8bea442ca (diff) | |
download | Qt-96a27e24eec9356e45f1a6b6ff641a9afab24a39.zip Qt-96a27e24eec9356e45f1a6b6ff641a9afab24a39.tar.gz Qt-96a27e24eec9356e45f1a6b6ff641a9afab24a39.tar.bz2 |
Make dark color schemes look better in property editor (especially schemes which have a grey color for text)
Task: 252251
RevBy: Markus Goetz <Markus.Goetz@nokia.com>
Diffstat (limited to 'tools/designer/src/components/propertyeditor/propertyeditor.cpp')
-rw-r--r-- | tools/designer/src/components/propertyeditor/propertyeditor.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/designer/src/components/propertyeditor/propertyeditor.cpp b/tools/designer/src/components/propertyeditor/propertyeditor.cpp index 63b57d8..806e1dd 100644 --- a/tools/designer/src/components/propertyeditor/propertyeditor.cpp +++ b/tools/designer/src/components/propertyeditor/propertyeditor.cpp @@ -205,14 +205,15 @@ PropertyEditor::PropertyEditor(QDesignerFormEditorInterface *core, QWidget *pare colors.push_back(QColor(234, 191, 255)); colors.push_back(QColor(255, 191, 239)); m_colors.reserve(colors.count()); + const int darknessFactor = 250; for (int i = 0; i < colors.count(); i++) { QColor c = colors.at(i); - m_colors.push_back(qMakePair(c, c.darker(150))); + m_colors.push_back(qMakePair(c, c.darker(darknessFactor))); } QColor dynamicColor(191, 207, 255); QColor layoutColor(255, 191, 191); - m_dynamicColor = qMakePair(dynamicColor, dynamicColor.darker(150)); - m_layoutColor = qMakePair(layoutColor, layoutColor.darker(150)); + m_dynamicColor = qMakePair(dynamicColor, dynamicColor.darker(darknessFactor)); + m_layoutColor = qMakePair(layoutColor, layoutColor.darker(darknessFactor)); updateForegroundBrightness(); |