Skip to content

Commit

Permalink
Make use of defined error color
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFenX committed Feb 20, 2024
1 parent 768c417 commit f89a8a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui/builtinViews/fittingView.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down Expand Up @@ -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))

Expand Down

0 comments on commit f89a8a9

Please sign in to comment.