4040from gui .builtinViews .implantEditor import BaseImplantEditorView
4141from gui .contextMenu import ContextMenu
4242from gui .utils .clipboard import fromClipboard , toClipboard
43+ from gui .utils .colors import Colors , ThemedDialog
4344from service .character import Character
4445from service .esi import Esi
4546from service .esiAccess import APIException
@@ -297,13 +298,15 @@ def __init__(self, parent):
297298 wx .Panel .__init__ (self , parent , id = wx .ID_ANY , pos = wx .DefaultPosition , size = wx .DefaultSize ,
298299 style = wx .TAB_TRAVERSAL )
299300 self .charEditor = self .Parent .Parent # first parent is Notebook, second is Character Editor
300- self .SetBackgroundColour (wx .SystemSettings .GetColour (wx .SYS_COLOUR_WINDOW ))
301+ self .SetBackgroundColour (Colors .windowBackground ())
302+ self .SetForegroundColour (Colors .text ())
301303
302304 pmainSizer = wx .BoxSizer (wx .VERTICAL )
303305
304306 hSizer = wx .BoxSizer (wx .HORIZONTAL )
305307
306308 self .clonesChoice = wx .Choice (self , wx .ID_ANY , style = 0 )
309+ Colors .styleInput (self .clonesChoice )
307310 i = self .clonesChoice .Append ("Omega Clone" , None )
308311 self .clonesChoice .SetSelection (i )
309312 hSizer .Add (self .clonesChoice , 5 , wx .ALL | wx .EXPAND , 5 )
@@ -780,7 +783,8 @@ def __init__(self, parent):
780783 wx .Panel .__init__ (self , parent , id = wx .ID_ANY , pos = wx .DefaultPosition , size = wx .Size (500 , 300 ),
781784 style = wx .TAB_TRAVERSAL )
782785 self .charEditor = self .Parent .Parent # first parent is Notebook, second is Character Editor
783- self .SetBackgroundColour (wx .SystemSettings .GetColour (wx .SYS_COLOUR_WINDOW ))
786+ self .SetBackgroundColour (Colors .windowBackground ())
787+ self .SetForegroundColour (Colors .text ())
784788
785789 pmainSizer = wx .BoxSizer (wx .VERTICAL )
786790
@@ -806,6 +810,7 @@ def __init__(self, parent):
806810 fgSizerInput .Add (self .m_staticCharText , 0 , wx .ALL | wx .ALIGN_RIGHT | wx .ALIGN_CENTER_VERTICAL , 10 )
807811
808812 self .charChoice = wx .Choice (self , wx .ID_ANY , style = 0 )
813+ Colors .styleInput (self .charChoice )
809814 fgSizerInput .Add (self .charChoice , 1 , wx .TOP | wx .BOTTOM | wx .EXPAND , 10 )
810815
811816 self .fetchButton = wx .Button (self , wx .ID_ANY , _t ("Get Skills" ), wx .DefaultPosition , wx .DefaultSize , 0 )
@@ -932,7 +937,7 @@ def fetchCallback(e=None):
932937 _t ("Successfully fetched skills" ), _t ("Success" ), wx .ICON_INFORMATION | wx .STAY_ON_TOP )
933938
934939
935- class SecStatusDialog (wx . Dialog ):
940+ class SecStatusDialog (ThemedDialog ):
936941
937942 def __init__ (self , parent , sec ):
938943 super ().__init__ (parent , title = _t ("Set Security Status" ), size = (300 , 175 ), style = wx .DEFAULT_DIALOG_STYLE )
0 commit comments