Added a bottom 'border' for market browser search box, also use same padding as in ship browser
This commit is contained in:
@@ -36,7 +36,7 @@ class PFSearchBox(wx.Window):
|
|||||||
self.editY = 0
|
self.editY = 0
|
||||||
|
|
||||||
|
|
||||||
self.padding = 2
|
self.padding = 4
|
||||||
|
|
||||||
self._hl = False
|
self._hl = False
|
||||||
|
|
||||||
@@ -239,7 +239,7 @@ class PFSearchBox(wx.Window):
|
|||||||
dc = wx.BufferedPaintDC(self)
|
dc = wx.BufferedPaintDC(self)
|
||||||
|
|
||||||
bkColor = wx.SystemSettings_GetColour(wx.SYS_COLOUR_WINDOW)
|
bkColor = wx.SystemSettings_GetColour(wx.SYS_COLOUR_WINDOW)
|
||||||
|
sepColor = colorUtils.GetSuitableColor(bkColor, 0.2)
|
||||||
rect = self.GetRect()
|
rect = self.GetRect()
|
||||||
|
|
||||||
if self.resized:
|
if self.resized:
|
||||||
@@ -269,6 +269,9 @@ class PFSearchBox(wx.Window):
|
|||||||
dc.DrawBitmap(self.cancelBitmapShadow, self.cancelButtonX + 1, self.cancelButtonY + 1)
|
dc.DrawBitmap(self.cancelBitmapShadow, self.cancelButtonX + 1, self.cancelButtonY + 1)
|
||||||
dc.DrawBitmap(self.cancelBitmap, self.cancelButtonX + cpad, self.cancelButtonY + cpad)
|
dc.DrawBitmap(self.cancelBitmap, self.cancelButtonX + cpad, self.cancelButtonY + cpad)
|
||||||
|
|
||||||
|
dc.SetPen(wx.Pen(sepColor,1))
|
||||||
|
dc.DrawLine(0,rect.height - 1, rect.width, rect.height - 1)
|
||||||
|
|
||||||
def SetSearchBitmap(self, bitmap):
|
def SetSearchBitmap(self, bitmap):
|
||||||
self.searchBitmap = bitmap
|
self.searchBitmap = bitmap
|
||||||
self.searchBitmapShadow = drawUtils.CreateDropShadowBitmap(bitmap, 0.2)
|
self.searchBitmapShadow = drawUtils.CreateDropShadowBitmap(bitmap, 0.2)
|
||||||
|
|||||||
Reference in New Issue
Block a user