From f89a8a9f87454852d9de9353850eec68e3bd132d Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Wed, 21 Feb 2024 00:01:55 +0600 Subject: [PATCH] Make use of defined error color --- gui/builtinViews/fittingView.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/builtinViews/fittingView.py b/gui/builtinViews/fittingView.py index a0c4e2fed..996992908 100644 --- a/gui/builtinViews/fittingView.py +++ b/gui/builtinViews/fittingView.py @@ -41,7 +41,7 @@ from gui.utils.staticHelpers import DragDropHelper from service.fit import Fit from service.market import Market -from config import slotColourMap +from config import slotColourMap, errColor from gui.fitCommands.helpers import getSimilarModPositions pyfalog = Logger(__name__) @@ -774,7 +774,7 @@ def refresh(self, stuff): if slotMap[mod.slot] or hasRestrictionOverriden: # Color too many modules as red - self.SetItemBackgroundColour(i, wx.Colour(204, 51, 51)) + self.SetItemBackgroundColour(i, errColor) elif sFit.serviceFittingOptions["colorFitBySlot"]: # Color by slot it enabled self.SetItemBackgroundColour(i, self.slotColour(mod.slot))