Icon size at toolbars

Hi

I created my toolbar with wxglade at osx and gets size appropriate, but in linux the icons size of changed.

Any suggestions?

osx.png

linux.png

toolbar.py (1.47 KB)

···


SIN ETIQUETAS.[ PUNTO ]
http://hi.im/jyr

http://www.opentumblr.com

What is the size of the source images? Do you call SetToolBitmapSize?

···

On 10/13/09 5:19 PM, Jair Gaxiola wrote:

Hi

I created my toolbar with wxglade at osx and gets size appropriate, but
in linux the icons size of changed.

--
Robin Dunn
Software Craftsman

Hi

I created my toolbar with wxglade at osx and gets size appropriate, but

in linux the icons size of changed.

What is the size of the source images?

60x60

Do you call SetToolBitmapSize?

Yes, in line 20

···

On Tue, Oct 13, 2009 at 7:31 PM, Robin Dunn robin@alldunn.com wrote:

On 10/13/09 5:19 PM, Jair Gaxiola wrote:

Robin Dunn

Software Craftsman

http://wxPython.org


SIN ETIQUETAS.[ PUNTO ]
http://hi.im/jyr
http://www.opentumblr.com

Maybe an obvious question, but I was burned by this once.

What is resolution of monitor (and what resolution is it set to) are you using in both cases? A lower resolution monitor will display apparently larger bitmaps for the same image file.

···


Mike Conley

On Tue, Oct 13, 2009 at 8:38 PM, Jair Gaxiola jyr.gaxiola@gmail.com wrote:

On Tue, Oct 13, 2009 at 7:31 PM, Robin Dunn robin@alldunn.com wrote:

On 10/13/09 5:19 PM, Jair Gaxiola wrote:

Hi

I created my toolbar with wxglade at osx and gets size appropriate, but

in linux the icons size of changed.

What is the size of the source images?

60x60

Do you call SetToolBitmapSize?

Yes, in line 20

Robin Dunn

Software Craftsman

http://wxPython.org


SIN ETIQUETAS.[ PUNTO ]
http://hi.im/jyr
http://www.opentumblr.com

Resolution in osx: 1200x800 and linux:1024x768, try with some minor resolutions how 1024x768, 800x600 in osx, shows fine. Not works. Not works self.SetToolBitmapSize((16, 15)) and self.SetToolBitmapSize(wx.Size(16, 15))

···

On Wed, Oct 14, 2009 at 7:22 AM, Mike Conley mconley0@gmail.com wrote:

Maybe an obvious question, but I was burned by this once.

What is resolution of monitor (and what resolution is it set to) are you using in both cases? A lower resolution monitor will display apparently larger bitmaps for the same image file.


SIN ETIQUETAS.[ PUNTO ]
http://hi.im/jyr
http://www.opentumblr.com

As stated in the docs, SetToolBitmapSize should be called *before* adding tools to the bitmap. Also, it "is the size of the bitmap you pass to AddTool, not the eventual size of the tool button." So you should be resizing the images to match the size you want them to be on the toolbar. Also, a couple other points to be aware of:

* The 16x15 size is typically only used on Windows in older pre-XP apps. Most apps nowadays will either use 16x16 or something larger.

* The typical tool bitmap size on GTK and Mac are 24x24, 32x32 or perhaps even larger.

* Auto resizing 60x60 images down to 16x16 will certainly result in much loss in clarity or resize artifacts, so you'll probably want to edit them by hand to produce a version that looks good at smaller sizes.

* On the Mac the bitmaps will be resized, if needed, to fit the only sizes that are supported by the native toolbar widget. IIRC it only supports something like 16x16, 24x24, 32x32 and 64x64.

···

On 10/13/09 5:38 PM, Jair Gaxiola wrote:

On Tue, Oct 13, 2009 at 7:31 PM, Robin Dunn <robin@alldunn.com > <mailto:robin@alldunn.com>> wrote:

    On 10/13/09 5:19 PM, Jair Gaxiola wrote:
     > Hi
     >
     > I created my toolbar with wxglade at osx and gets size
    appropriate, but
     > in linux the icons size of changed.

    What is the size of the source images?

60x60

    Do you call SetToolBitmapSize?

Yes, in line 20

--
Robin Dunn
Software Craftsman

I changed size the images, thanks

···

On Wed, Oct 14, 2009 at 11:21 AM, Robin Dunn robin@alldunn.com wrote:

On 10/13/09 5:38 PM, Jair Gaxiola wrote:

On Tue, Oct 13, 2009 at 7:31 PM, Robin Dunn <robin@alldunn.com > > mailto:robin@alldunn.com> wrote:

On 10/13/09 5:19 PM, Jair Gaxiola wrote:
 > Hi
 >
 > I created my toolbar with wxglade at osx and gets size
appropriate, but
 > in linux the icons size of changed.
What is the size of the source images?

60x60

Do you call SetToolBitmapSize?

Yes, in line 20

As stated in the docs, SetToolBitmapSize should be called before

adding tools to the bitmap. Also, it "is the size of the bitmap you

pass to AddTool, not the eventual size of the tool button." So you

should be resizing the images to match the size you want them to be on

the toolbar. Also, a couple other points to be aware of:


SIN ETIQUETAS.[ PUNTO ]
http://hi.im/jyr

http://www.opentumblr.com