Browse Source

Better colorisation of the selected item in the treeWidget

pull/117/head
Eugenio Parodi 3 years ago
parent
commit
07ab8df145
  1. 2
      TermTk/TTkWidgets/TTkModelView/treewidget.py

2
TermTk/TTkWidgets/TTkModelView/treewidget.py

@ -346,6 +346,6 @@ class TTkTreeWidget(TTkAbstractScrollView):
text = c.data[il]
if item.isSelected():
self._canvas.drawText(pos=(lx-x,i-y+1), text=text, width=lx1-lx, alignment=item.textAlignment(il), color=self._selectedColor, forceColor=True)
self._canvas.drawText(pos=(lx-x,i-y+1), text=text.completeColor(self._selectedColor), width=lx1-lx, alignment=item.textAlignment(il), color=self._selectedColor)
else:
self._canvas.drawText(pos=(lx-x,i-y+1), text=text, width=lx1-lx, alignment=item.textAlignment(il))

Loading…
Cancel
Save