From b2ca4d64326c25116b2ea2e5db75235b68db709e Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Fri, 9 Jan 2026 19:07:31 +0100 Subject: [PATCH] simpler; removed custom background color (clashes with theming) --- slic/gui/daqpanels/goto.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/slic/gui/daqpanels/goto.py b/slic/gui/daqpanels/goto.py index 5cd97641..6022526c 100644 --- a/slic/gui/daqpanels/goto.py +++ b/slic/gui/daqpanels/goto.py @@ -153,10 +153,8 @@ class ShortcutGoToLine(wx.BoxSizer): class ReadOnlyTextCtrl(wx.TextCtrl): - def __init__(self, *args, **kwargs): - kwargs.setdefault("style", wx.TE_READONLY) - super().__init__(*args, **kwargs) - self.SetBackgroundColour(wx.LIGHT_GREY) + def __init__(self, *args, style=wx.TE_READONLY, **kwargs): + super().__init__(*args, style=style, **kwargs)