[qt] drop the infamous yellow color (closes #113385)

Yellow is not readable at all on white background

authorPierre-Yves David <pierre-yves.david@logilab.fr>
changesetd616e2b37fb1
branchstable
phasepublic
hiddenno
parent revision#89b85da036a6 fix trailing white space
child revision#eaf7079c90ee [qt] prevent hgview from getting slower and slower at each reload (closes #114970)
files modified by this revision
hgviewlib/qt4/hgrepomodel.py
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@logilab.fr>
# Date 1355152531 -3600
# Mon Dec 10 16:15:31 2012 +0100
# Branch stable
# Node ID d616e2b37fb18fb189c8179322deab9157d3d928
# Parent 89b85da036a623f14f8524352d3fc3831350caac
[qt] drop the infamous yellow color (closes #113385)

Yellow is not readable at all on white background

diff --git a/hgviewlib/qt4/hgrepomodel.py b/hgviewlib/qt4/hgrepomodel.py
@@ -38,11 +38,11 @@
1  nullvariant = QtCore.QVariant()
2 
3  # XXX make this better than a poor hard written list...
4  COLORS = [ "blue", "darkgreen", "red", "green", "darkblue", "purple",
5             "cyan", QtCore.Qt.darkYellow, "magenta", "darkred", "darkmagenta",
6 -           "darkcyan", "gray", "yellow", ]
7 +           "darkcyan", "gray", ]
8  COLORS = [str(QtGui.QColor(x).name()) for x in COLORS]
9  #COLORS = [str(color) for color in QtGui.QColor.colorNames()]
10 
11  # We use two colors, One for even nd one for odd rows
12  COLOR_BG_OBSOLETE = [QtGui.QColor(255, 250, 250), QtGui.QColor(243, 230, 230)]