[Libreoffice] [PATCH] set the icons size based on the DPI just like we do on Mac
robert at openbsd.org
Wed Jan 5 09:32:39 PST 2011
Oh well then Linux is broken, again. :)
In gedit the icons are bigger than the small ones but not as huge
as in LibreOffice.
Here you can see (LO with small icons):
(ws robert 22435)$ xdpyinfo | egrep "(dimensions|dots per inch)"
dimensions: 1920x1080 pixels (518x291 millimeters)
resolution: 94x94 dots per inch
It is strange for me tho that linux *hardcodes* 75. Where is taht
On (2011-01-05 17:14), Michael Meeks wrote:
> Hi Robert,
> On Wed, 2011-01-05 at 16:24 +0100, Robert Nagy wrote:
> > On (2011-01-05 14:27), Michael Meeks wrote:
> > > So - I would prefer to stick with large icons; and not use the DPI
> > > setting. I suggest instead, that we only use large icons if the true Y
> > > resolution > 768 - how does that sound ?
> > Oh wait, I misunderstood. That is wrong. I am on a 1920x1080 display
> :-) so - as I say; the DPI is a constant of 75 across the Linux
> desktop, so this is not a switch but a hard coded setting :-)
> I am still convinced that large icons, on a reasonably sized screen
> give a -far- more useful view of the metaphore for a beginner user. As I
> say, advanced users can make it smaller.
> > and i still prefer the small icons, it is like that in _every_ app. So
> > we should stick to the DPI.
> Well; looking at gedit - it is using gtktoolbar.c's:
> #define DEFAULT_ICON_SIZE GTK_ICON_SIZE_LARGE_TOOLBAR
> ie. the same size (large) icons that we are using here. Perhaps the
> size setting is coming from the theme, in which case we should extract
> it and use exactly that setting in LibreOffice - can you have a dig ?
> (can you check that stock gtk+ apps do indeed have small toolbar
> icons ?).
> michael.meeks at novell.com <><, Pseudo Engineer, itinerant idiot
More information about the LibreOffice