Mercurial > hg > easyhg
diff src/connectionitem.cpp @ 506:470829a21f98
Identify closed branches and display them in a lighter shade
author | Chris Cannam |
---|---|
date | Mon, 17 Oct 2011 22:08:05 +0100 |
parents | ef31a55c86b6 |
children | 2981d2defa61 |
line wrap: on
line diff
--- a/src/connectionitem.cpp Mon Oct 17 16:25:02 2011 +0100 +++ b/src/connectionitem.cpp Mon Oct 17 22:08:05 2011 +0100 @@ -55,12 +55,17 @@ paint->save(); + int alpha = 255; + if (m_child && m_child->isClosed()) alpha = 90; + ColourSet *colourSet = ColourSet::instance(); QString branch; if (m_child) branch = m_child->getChangeset()->branch(); else branch = m_uncommitted->branch(); QColor branchColour = colourSet->getColourFor(branch); + branchColour.setAlpha(alpha); + Qt::PenStyle ls = Qt::SolidLine; if (!m_child) ls = Qt::DashLine;