summaryrefslogtreecommitdiff
path: root/src/plugins/qmlprofiler/qmlprofilerpainteventsmodelproxy.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@digia.com>2014-02-26 17:42:04 +0100
committerUlf Hermann <ulf.hermann@digia.com>2014-03-10 12:10:39 +0100
commit64af5c12e004b6e392e7f0c539ef3b02f7d2a564 (patch)
treec8de0c1538757afed2560a40a9ec414c23f72ee1 /src/plugins/qmlprofiler/qmlprofilerpainteventsmodelproxy.cpp
parent998bb89739db3a620437e6855e9e32e520713d4b (diff)
downloadqt-creator-64af5c12e004b6e392e7f0c539ef3b02f7d2a564.tar.gz
QmlProfiler: Deduplicate color selection and saturate colors some more
The original timeline colors are hard to see on certain devices. This makes them stand out more from the background. Change-Id: Icf6ef8a8ea360b7f47609f8673c4c6e22b091296 Reviewed-by: Kai Koehne <kai.koehne@digia.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilerpainteventsmodelproxy.cpp')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilerpainteventsmodelproxy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilerpainteventsmodelproxy.cpp b/src/plugins/qmlprofiler/qmlprofilerpainteventsmodelproxy.cpp
index 0e535d1688..e61f5eec8f 100644
--- a/src/plugins/qmlprofiler/qmlprofilerpainteventsmodelproxy.cpp
+++ b/src/plugins/qmlprofiler/qmlprofilerpainteventsmodelproxy.cpp
@@ -179,7 +179,7 @@ QColor PaintEventsModelProxy::getColor(int index) const
fpsFraction = 1.0;
if (fpsFraction < 0.0)
fpsFraction = 0.0;
- return QColor::fromHsl((fpsFraction*96)+10, 76, 166);
+ return getFractionColor(fpsFraction);
}
float PaintEventsModelProxy::getHeight(int index) const