Some slight tweaks to work done by @tonycoz for #1839

This commit is contained in:
blitzmann
2019-03-02 17:21:46 -05:00
parent 8d0c2c18d2
commit f8e6474b39
5 changed files with 40 additions and 50 deletions

View File

@@ -1,6 +1,7 @@
import wx
from logbook import Logger
from eos.saveddata.module import Module
import gui.builtinMarketBrowser.pfSearchBox as SBox
from gui.builtinMarketBrowser.events import ItemSelected, MAX_RECENTLY_USED_MODULES, RECENTLY_USED_MODULES
from gui.contextMenu import ContextMenu
@@ -271,7 +272,6 @@ class ItemView(Display):
def columnBackground(self, colItem, item):
if self.sFit.serviceFittingOptions["colorFitBySlot"]:
slot = item.slot
return slotColourMap.get(slot) or self.GetBackgroundColour()
return slotColourMap.get(Module.calculateSlot(item)) or self.GetBackgroundColour()
else:
return self.GetBackgroundColour()