Skip to content

Commit

Permalink
wxGUI: Add dark mode support for vector attribute table manager (#793)
Browse files Browse the repository at this point in the history
See also #591.
  • Loading branch information
nilason committed Jul 19, 2020
1 parent 07625f2 commit 28eee3a
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions gui/wxpython/dbmgr/base.py
Expand Up @@ -115,11 +115,7 @@ def __init__(self, parent, log, dbMgrData, layer, pages):
message=e.value)
return

# add some attributes (colourful background for each item rows)
self.attr1 = wx.ListItemAttr()
self.attr1.SetBackgroundColour(wx.Colour(238, 238, 238))
self.attr2 = wx.ListItemAttr()
self.attr2.SetBackgroundColour("white")
self.EnableAlternateRowColours()
self.il = wx.ImageList(16, 16)
self.sm_up = self.il.Add(
wx.ArtProvider.GetBitmap(
Expand Down Expand Up @@ -436,13 +432,6 @@ def OnGetItemText(self, item, col):
s = self.itemDataMap[index][col]
return str(s)

def OnGetItemAttr(self, item):
"""Get item attributes"""
if (item % 2) == 0:
return self.attr2
else:
return self.attr1

def OnColumnMenu(self, event):
"""Column heading right mouse button -> pop-up menu"""
self._col = event.GetColumn()
Expand Down

0 comments on commit 28eee3a

Please sign in to comment.