From: Tom P. <mlp...@ea...> - 2004-03-14 14:20:19
|
Hi, Running the current CVS version of bitpim under MacOSX 10.3 with WxPython 2.4.2.4, I find that the phonebook entry-details view is unreadable, because the font sizes are too small. First, is it really just me, or do other people suffer from this, too? Second, it wasn't obvious to me where in the code (or .xy files) this should be fixed. But, I found that if I just removed the smallest two font sizes from the basefonts list in the SetFontScale method of bphtml, things looked ok in the details view without affecting the appearance anywhere else, as far as I could notice. Here are the code changes I propose... diff -w -c -r1.12 bphtml.py *** bphtml.py 12 Mar 2004 19:42:34 -0000 1.12 --- bphtml.py 14 Mar 2004 13:42:09 -0000 *************** *** 43,53 **** self.SetFontScale(relsize) def SetFontScale(self, scale): ! # default sizes on windows ! basefonts=[7,8,10,12,16,22,30] ! # defaults on linux if guihelper.IsGtk(): ! basefonts=[10,13,17,20,23,27,30] self.SetFonts("", "", [int(sz*scale) for sz in basefonts]) # the html widget clears itself if you set the scale if len(self.thetext): --- 43,55 ---- self.SetFontScale(relsize) def SetFontScale(self, scale): ! # default font sizes if guihelper.IsGtk(): ! basefonts=[10,13,17,20,23,27,30] # Linux ! elif guihelper.IsMac(): ! basefonts=[10,12,16,22,30] # MacOS ! else: ! basefonts=[7,8,10,12,16,22,30] # Windows self.SetFonts("", "", [int(sz*scale) for sz in basefonts]) # the html widget clears itself if you set the scale if len(self.thetext): Cheers, Tom |