mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-08 04:50:07 +01:00
Merge pull request #1381 from l0stman/fix-supertooltip
Use the defined text color in a SuperToolTip
This commit is contained in:
@@ -320,7 +320,9 @@ class ToolTipWindowBase(object):
|
||||
maxWidth = max(bmpWidth+(textWidth+self._spacing*3), maxWidth)
|
||||
# Calculate the header height
|
||||
height = max(textHeight, bmpHeight)
|
||||
normalText = classParent.GetTextColour()
|
||||
if header:
|
||||
dc.SetTextForeground(normalText)
|
||||
dc.DrawText(header, bmpXPos+bmpWidth+self._spacing, (height-textHeight+self._spacing)/2)
|
||||
if headerBmp and headerBmp.IsOk():
|
||||
dc.DrawBitmap(headerBmp, bmpXPos, (height-bmpHeight+self._spacing)/2, True)
|
||||
@@ -345,7 +347,6 @@ class ToolTipWindowBase(object):
|
||||
lines = classParent.GetMessage().split("\n")
|
||||
yText = yPos
|
||||
embImgPos = yPos
|
||||
normalText = wx.SystemSettings.GetColour(wx.SYS_COLOUR_MENUTEXT)
|
||||
hyperLinkText = wx.BLUE
|
||||
messagePos = self._getTextExtent(dc, lines[0] if lines else "")[1] // 2 + self._spacing
|
||||
for line in lines:
|
||||
|
||||
Reference in New Issue
Block a user