From dafb70b689a6566522e8eae1d938710bc7f02339 Mon Sep 17 00:00:00 2001 From: Alex Dewar Date: Mon, 25 Jul 2022 15:07:39 +0100 Subject: [PATCH] IntCtrl: Change default colour to wx.NullColour Fixes #2199. The problem is that the default colour is currently wx.BLACK which will basically be invisible if the user has a dark theme. Use ``wx.NullColour`` instead so that it can just use the default text colour for the user's theme. Note that this does not fix the second part of issue #2199 (the colours still don't change if the control is disabled) but I feel this should be a separate issue now. --- wx/lib/intctrl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wx/lib/intctrl.py b/wx/lib/intctrl.py index a4c24794..c4ca9ea9 100644 --- a/wx/lib/intctrl.py +++ b/wx/lib/intctrl.py @@ -398,7 +398,7 @@ class IntCtrl(wx.TextCtrl): name = "integer", min=None, max=None, limited = 0, allow_none = 0, allow_long = 0, - default_color = wx.BLACK, oob_color = wx.RED, + default_color = wx.NullColour, oob_color = wx.RED, ): """ Default constructor