OMG I HAVE A SHIP BROWSER NOW :3 (replace old instances of GetSuitableColor with GetSuitable)
This commit is contained in:
@@ -101,7 +101,7 @@ class CategoryItem(SFBrowserItem):
|
||||
self.UpdateElementsPos(mdc)
|
||||
|
||||
windowColor = wx.SystemSettings.GetColour(wx.SYS_COLOUR_WINDOW)
|
||||
textColor = colorUtils.GetSuitableColor(windowColor, 1)
|
||||
textColor = colorUtils.GetSuitable(windowColor, 1)
|
||||
|
||||
mdc.SetTextForeground(textColor)
|
||||
mdc.DrawBitmap(self.dropShadowBitmap, self.shipBmpx + 1, self.shipBmpy + 1)
|
||||
|
||||
@@ -480,7 +480,7 @@ class FitItem(SFItem.SFBrowserItem):
|
||||
rect = self.GetRect()
|
||||
|
||||
windowColor = wx.SystemSettings.GetColour(wx.SYS_COLOUR_WINDOW)
|
||||
textColor = colorUtils.GetSuitableColor(windowColor, 1)
|
||||
textColor = colorUtils.GetSuitable(windowColor, 1)
|
||||
|
||||
mdc.SetTextForeground(textColor)
|
||||
|
||||
|
||||
@@ -212,8 +212,8 @@ class NavigationPanel(SFItem.SFBrowserItem):
|
||||
rect = self.GetRect()
|
||||
|
||||
windowColor = wx.SystemSettings.GetColour(wx.SYS_COLOUR_WINDOW)
|
||||
textColor = colorUtils.GetSuitableColor(windowColor, 1)
|
||||
sepColor = colorUtils.GetSuitableColor(windowColor, 0.2)
|
||||
textColor = colorUtils.GetSuitable(windowColor, 1)
|
||||
sepColor = colorUtils.GetSuitable(windowColor, 0.2)
|
||||
|
||||
mdc.SetTextForeground(textColor)
|
||||
|
||||
|
||||
@@ -167,8 +167,8 @@ class RaceSelector(wx.Window):
|
||||
rect = self.GetRect()
|
||||
|
||||
windowColor = wx.SystemSettings.GetColour(wx.SYS_COLOUR_WINDOW)
|
||||
# bkColor = colorUtils.GetSuitableColor(windowColor, 0.1)
|
||||
sepColor = colorUtils.GetSuitableColor(windowColor, 0.2)
|
||||
# bkColor = colorUtils.GetSuitable(windowColor, 0.1)
|
||||
sepColor = colorUtils.GetSuitable(windowColor, 0.2)
|
||||
|
||||
mdc = wx.BufferedPaintDC(self)
|
||||
|
||||
|
||||
@@ -233,7 +233,7 @@ class ShipItem(SFItem.SFBrowserItem):
|
||||
# rect = self.GetRect()
|
||||
|
||||
windowColor = wx.SystemSettings.GetColour(wx.SYS_COLOUR_WINDOW)
|
||||
textColor = colorUtils.GetSuitableColor(windowColor, 1)
|
||||
textColor = colorUtils.GetSuitable(windowColor, 1)
|
||||
|
||||
mdc.SetTextForeground(textColor)
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ class LoadAnimation(wx.Window):
|
||||
dc.Clear()
|
||||
|
||||
barColor = wx.SystemSettings.GetColour(wx.SYS_COLOUR_WINDOWTEXT)
|
||||
shadeColor = colorUtils.GetSuitableColor(barColor, 0.75)
|
||||
shadeColor = colorUtils.GetSuitable(barColor, 0.75)
|
||||
|
||||
barWidth = rect.width / self.bars
|
||||
barHeight = rect.height - self.padding * 2
|
||||
@@ -72,7 +72,7 @@ class LoadAnimation(wx.Window):
|
||||
bh = barHeight
|
||||
y = self.padding
|
||||
else:
|
||||
barColor = colorUtils.GetSuitableColor(barColor, float(self.animCount / 2) / 10)
|
||||
barColor = colorUtils.GetSuitable(barColor, float(self.animCount / 2) / 10)
|
||||
dc.SetPen(wx.Pen(barColor))
|
||||
dc.SetBrush(wx.Brush(barColor))
|
||||
bh = rect.height
|
||||
|
||||
Reference in New Issue
Block a user