Panel resizing

Vincent Untz vuntz at
Sun Nov 18 08:36:53 GMT 2007


Just some technical background... (I don't know what's the best way to
solve all this and I'm open to suggestions)

On ven, 2007-11-16 at 18:07 +1300, Matthew Paul Thomas wrote:
> On Nov 16, 2007, at 4:29 PM, Ted Gould wrote:
> > As long as the icons on the dock use the themes correctly this 
> > shouldn't be a big deal.
> > ...
> Unfortunately they don't, as you can see by playing with the "Panel 
> Properties" window in Ubuntu 7.10. The most egregious example is the 
> Ubuntu icon itself: despite the presence of 
> /usr/share/icons/Human/scalable/places/distributor-logo.svg, the Ubuntu 
> icon in the "Main Menu" applet doesn't scale beyond 48px, and the 
> Ubuntu icon in the default "Menu Bar" applet doesn't scale at all. (The 
> latter might be constrained by the non-resizing "Applications" text; I 
> think that's an example of basic aesthetic incompatibility between text 
> menus and a manually-resizable panel.)

IIRC, the reason icons are not scaled beyond 48px was that they were
taking so much place after that size that it doesn't make sense. Now
that we have bigger & wider screens, it might make sense again

(the menu bar icon is a "different" issue, since the size is enforced by
the fact that it's a real GtkMenuBar widget)

> Even if the icons did use the themes correctly, that wouldn't work well 
> for panel sizes such as 30px, 31px, and 41px to 47px inclusive, just as 
> it doesn't work well now. With a panel size that was specified in 
> points and scaling itself based on the screen resolution, you might 
> easily end up in those pixel ranges and not know why the panel looked 
> bad.

We never scale icons in the panel. For a panel with a size between 24px
and 31px, we use the 24px with some padding around it. For 32 to 47, we
use the 32px icon with some padding, etc.


Les gens heureux ne sont pas pressés.

More information about the ubuntu-desktop mailing list