[Development] Fwd: Icon-theme-spec update for scaled icons

Thiago Macieira thiago.macieira at intel.com
Wed Jul 3 18:00:25 CEST 2013


Have we implemented hidpi for QIcon::fromTheme? If so, does it match the 
proposal? If not, would this proposal work?

----------  Forwarded message  ----------

Subject: Icon-theme-spec update for scaled icons
Date: terça-feira, 2 de julho de 2013, 15.51.46
From: Alexander Larsson <alexl at redhat.com>
Para: xdg at lists.freedesktop.org

I've been working on adding support for HiDPI screens. Part of it has
landed in wayland already, some is work-in-progress in Gtk+. Generally
how this work is that on very high resolution monitors we "scale" the UI
so that code works in the old "low dpi" pixels, but we then render it
with a scaling factor.

For icons we can't just scale as that would not look very nice, so
instead we need to supply alternative higher resolution data. Things
kind of work already, like you can pick 96x96 icons when rendering 48x48
icons at scale 2. However, in many cases the larger icons have a lot
more detail that don't really look very well when rendering at the
higher scale. For instance some sort icons have text in them which is
very hard to read, or borders become really thin.

So, attached to the mail is a patch to the icon theme spec that adds a
"Scale" property to the icon directories. With this one could have icons
for size "48" in both scale 1 and 2.


-----------------------------------------
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-icon-theme-spec-Add-icon-scale-support.patch
Type: text/x-patch
Size: 11089 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130703/267a53cb/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130703/267a53cb/attachment.sig>


More information about the Development mailing list