[Libreoffice] [PATCH] set the icons size based on the DPI just like we do on Mac

Robert Nagy robert at openbsd.org
Wed Jan 5 10:02:12 PST 2011


Hi

We should just ignore all the theming here since a lot of people are not
running gnome or whatever window manager and just use stock gtk.

On (2011-01-05 18:59), Christian Lohmaier wrote:
> Hi Robert, *,
> 
> On Wed, Jan 5, 2011 at 6:36 PM, Robert Nagy <robert at openbsd.org> wrote:
> > It seems to me that gedit uses GTK_ICON_SIZE_MENU which is 16x16.
> 
> On GNOME it follows the theme, wich in turn follows the gconf-setting
> /desktop/gnome/interface/toolbar_icons_size
> 
> so whatever your theme defines in the gtk-icon-sizes property will be used.
> 
> e.g.
> HighContrastLargePrint/gtk-2.0/gtkrc:gtk-icon-sizes =
> "mini-commander-icon=24,24:print-manager=64,64:panel-button=32,32:gtk-dnd=48,48:gtk-menu=32,32:panel-menu=48,48:gtk-large-toolbar=48,48:gtk-small-toolbar=32,32:gtk-button=32,32:gtk-dialog=64,64"
> 
> "small-toolbar" ??? you get 32x32 icons, "large-toolbar", you get 48x48 ones.
> 
> Redmond/gtk-2.0/gtkrc:gtk-icon-sizes =
> "mini-commander-icon=32,32:print-manager=32,32:panel-button=32,32:gtk-dnd=32,32:gtk-menu=16,16:panel-menu=22,22:gtk-large-toolbar=16,16:gtk-small-toolbar=16,16:gtk-button=16,16:gtk-dialog=32,32"
> 
> ??? "small-toolbar" ??? you get 16x15, "large-toolbar" ??? you get 16x16 as well.
> 
> ciao
> Christian


More information about the LibreOffice mailing list