change white background for icons in PouInstanceVariablePanel to transparent
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Mon, 16 Jan 2017 12:22:58 +0300
changeset 1636 ad3dee8b6d48
parent 1635 25e3bf6e193d
child 1637 6f4624687b89
change white background for icons in PouInstanceVariablePanel to transparent

in wxPython 2.8 panel has white background and therefore white
background is appropriate, but in wxPython 3.0 panel has grey
background (on GNU/Linux and on Windows).
Transparent background looks good on both wxPython versions and on all platforms.
controls/PouInstanceVariablesPanel.py
--- a/controls/PouInstanceVariablesPanel.py	Mon Jan 16 12:15:20 2017 +0300
+++ b/controls/PouInstanceVariablesPanel.py	Mon Jan 16 12:22:58 2017 +0300
@@ -93,7 +93,7 @@
             images_bbx = self.GetItemRightImagesBBox(item)
             r_image_w, r_image_h = self._imageListRight.GetSize(rightimages[0])
             
-            dc.SetBrush(wx.WHITE_BRUSH)
+            dc.SetBrush(wx.TRANSPARENT_BRUSH)
             dc.SetPen(wx.TRANSPARENT_PEN)
             
             bg_width = (r_image_w + 4) * len(rightimages) + 4