mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
Ensure Tree Mixin text visibility against a white background
This commit is contained in:
@@ -84,13 +84,13 @@ class DemoTreeMixin(treemixin.VirtualTree, treemixin.DragAndDrop,
|
|||||||
def OnGetItemTextColour(self, indices):
|
def OnGetItemTextColour(self, indices):
|
||||||
# Show how to change the item text colour. In this case second level
|
# Show how to change the item text colour. In this case second level
|
||||||
# items are coloured red and third level items are blue. All other
|
# items are coloured red and third level items are blue. All other
|
||||||
# items have the default text colour.
|
# items are black
|
||||||
if len(indices) % 2 == 0:
|
if len(indices) % 2 == 0:
|
||||||
return wx.RED
|
return wx.RED
|
||||||
elif len(indices) % 3 == 0:
|
elif len(indices) % 3 == 0:
|
||||||
return wx.BLUE
|
return wx.BLUE
|
||||||
else:
|
else:
|
||||||
return super(DemoTreeMixin, self).OnGetItemTextColour(indices)
|
return wx.BLACK
|
||||||
|
|
||||||
def OnGetItemBackgroundColour(self, indices):
|
def OnGetItemBackgroundColour(self, indices):
|
||||||
# Show how to change the item background colour. In this case the
|
# Show how to change the item background colour. In this case the
|
||||||
|
|||||||
Reference in New Issue
Block a user