Better font selection and sizes for wxGTK2, tweaked call tip colors

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-03-26 00:24:02 +00:00
parent b098694cb7
commit 99b486ab37

View File

@@ -16,7 +16,7 @@ import dispatcher
from version import VERSION from version import VERSION
if wx.Platform == '__WXMSW__': if 'wxMSW' in wx.PlatformInfo:
FACES = { 'times' : 'Times New Roman', FACES = { 'times' : 'Times New Roman',
'mono' : 'Courier New', 'mono' : 'Courier New',
'helv' : 'Lucida Console', 'helv' : 'Lucida Console',
@@ -25,8 +25,23 @@ if wx.Platform == '__WXMSW__':
'size' : 10, 'size' : 10,
'lnsize' : 9, 'lnsize' : 9,
'backcol' : '#FFFFFF', 'backcol' : '#FFFFFF',
'calltipbg' : '#FFFFB8',
'calltipfg' : '#404040',
} }
else: # GTK
elif 'wxGTK' in wx.PlatformInfo and 'gtk2' in wx.PlatformInfo:
FACES = { 'times' : 'Serif',
'mono' : 'Monospace',
'helv' : 'Sans',
'other' : 'new century schoolbook',
'size' : 10,
'lnsize' : 9,
'backcol' : '#FFFFFF',
'calltipbg' : '#FFFFB8',
'calltipfg' : '#404040',
}
else: # GTK1, OSX, etc.
FACES = { 'times' : 'Times', FACES = { 'times' : 'Times',
'mono' : 'Courier', 'mono' : 'Courier',
'helv' : 'Helvetica', 'helv' : 'Helvetica',
@@ -34,6 +49,8 @@ else: # GTK
'size' : 12, 'size' : 12,
'lnsize' : 10, 'lnsize' : 10,
'backcol' : '#FFFFFF', 'backcol' : '#FFFFFF',
'calltipbg' : '#FFFFB8',
'calltipfg' : '#404040',
} }
@@ -87,7 +104,8 @@ class EditWindow(stc.StyledTextCtrl):
self.AutoCompStops(' .,;:([)]}\'"\\<>%^&+-=*/|`') self.AutoCompStops(' .,;:([)]}\'"\\<>%^&+-=*/|`')
# Do we want to automatically pop up command argument help? # Do we want to automatically pop up command argument help?
self.autoCallTip = True self.autoCallTip = True
self.CallTipSetBackground(wx.Colour(255, 255, 232)) self.CallTipSetBackground(FACES['calltipbg'])
self.CallTipSetForeground(FACES['calltipfg'])
self.SetWrapMode(False) self.SetWrapMode(False)
try: try:
self.SetEndAtLastLine(False) self.SetEndAtLastLine(False)