forked from qt-creator/qt-creator
Saturate colors some more and use color selection from base class
The original colors were hard to discern from the background on certain devices. Change-Id: I276f2cd76e0a1be40040bf5a0557a288d10d37d9 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -90,10 +90,9 @@ QColor PixmapCacheModel::getColor(int index) const
|
||||
{
|
||||
Q_D(const PixmapCacheModel);
|
||||
if (d->range(index).pixmapEventType == PixmapCacheCountChanged)
|
||||
return QColor::fromHsl(240, 76, 166);
|
||||
return getColorByHue(PixmapCacheCountHue);
|
||||
|
||||
int ndx = getEventId(index);
|
||||
return QColor::fromHsl((ndx*25)%360, 76, 166);
|
||||
return getEventColor(index);
|
||||
}
|
||||
|
||||
float PixmapCacheModel::getHeight(int index) const
|
||||
|
@@ -71,6 +71,8 @@ public:
|
||||
void clear();
|
||||
|
||||
private:
|
||||
static const int PixmapCacheCountHue = 240;
|
||||
|
||||
class PixmapCacheModelPrivate;
|
||||
Q_DECLARE_PRIVATE(PixmapCacheModel)
|
||||
};
|
||||
|
@@ -103,7 +103,7 @@ QColor SceneGraphTimelineModel::getColor(int index) const
|
||||
double fpsFraction = 1 / (eventDuration * 60.0);
|
||||
if (fpsFraction > 1.0)
|
||||
fpsFraction = 1.0;
|
||||
return QColor::fromHsl((fpsFraction*96)+10, 76, 166);
|
||||
return getFractionColor(fpsFraction);
|
||||
}
|
||||
|
||||
QString labelForSGType(int t)
|
||||
|
Reference in New Issue
Block a user