Changeset 3034

Show
Ignore:
Timestamp:
04/04/2007 10:36:50 PM (2 years ago)
Author:
paul
Message:

Toolbar icons on Mac look much better at 32x32 than at 22x22 which is standard for Windows and Gtk.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dabo/lib/datanav2/Form.py

    r3033 r3034  
    6565            return 
    6666     
    67         iconPath = "themes/tango/22x22" 
    68         tb.SetToolBitmapSize((22,22))  ## need to abstract in dToolBar!  
     67        if self.Application.Platform == "Mac": 
     68            # Toolbar looks better with larger icons on Mac. In fact, I believe HIG 
     69            # recommends 32x32 for Mac Toolbars. 
     70            iconSize = (32, 32) 
     71        else: 
     72            iconSize = (22, 22) 
     73        tb.SetToolBitmapSize(iconSize)  ## need to abstract in dToolBar! 
     74        iconPath = "themes/tango/%sx%s" % iconSize 
     75     
    6976        if self.FormType != 'Edit': 
    7077            self.appendToolBarButton("First", "%s/actions/go-first.png" % iconPath,