Mercurial > hg > easyhg
changeset 395:a09d5ffe165c item_appearance_adjustments
Make colour selection for branches and authors more headache-inducing^W^Wcheerful
author | Chris Cannam |
---|---|
date | Tue, 24 May 2011 17:59:18 +0100 |
parents | 27757ce9c76c |
children | 1e73b5911631 |
files | src/colourset.cpp |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/colourset.cpp Tue May 24 17:47:46 2011 +0100 +++ b/src/colourset.cpp Tue May 24 17:59:18 2011 +0100 @@ -38,9 +38,11 @@ QColor c; if (m_colours.empty()) { - c = QColor::fromHsv(0, 200, 100); + c = QColor::fromHsv(0, 200, 150); } else { - c = QColor::fromHsv((m_lastColour.hue() + 70) % 360, 200, 100); + int hue = m_lastColour.hue() - 130; + if (hue < 0) hue += 360; + c = QColor::fromHsv(hue, 200, 150); } m_colours[n] = c;