qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/3] ui: install logo icons to $prefix/share/icons
Date: Wed, 19 Dec 2018 10:03:25 +0000	[thread overview]
Message-ID: <20181219100325.GC20465@redhat.com> (raw)
In-Reply-To: <20181219072023.2hbaoqrfp6r2ihog@sirius.home.kraxel.org>

On Wed, Dec 19, 2018 at 08:20:23AM +0100, Gerd Hoffmann wrote:
> On Tue, Dec 18, 2018 at 02:26:27PM +0000, Daniel P. Berrangé wrote:
> > QEMU currently installs loogs to $prefix/share/qemu/ which means no GUI
> > toolkit or applications can find them by default.
> > 
> > The accepted standards for desktop applications declare that application
> > logos / icons should be installed under $prefix/share/icons, so use this
> > directory location.
> > 
> > Pre-rendered icons are provided at the standard sizes expected for GUI
> > applications, along with the scalable SVG, to ensure maximum portability.
> > 
> > Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
> > ---
> >  Makefile                                       |  13 ++++++++++++-
> >  configure                                      |   2 ++
> >  ui/gtk.c                                       |  17 +++++------------
> >  .../qemu_logo_no_text.svg => ui/icons/qemu.svg |   0
> >  ui/icons/qemu_128x128.png                      | Bin 0 -> 7761 bytes
> >  ui/icons/qemu_16x16.png                        | Bin 0 -> 751 bytes
> >  ui/icons/qemu_24x24.png                        | Bin 0 -> 1167 bytes
> >  ui/icons/qemu_256x256.png                      | Bin 0 -> 16216 bytes
> >  .../qemu-icon.bmp => ui/icons/qemu_32x32.bmp   | Bin
> >  ui/icons/qemu_32x32.png                        | Bin 0 -> 1656 bytes
> >  ui/icons/qemu_48x48.png                        | Bin 0 -> 2604 bytes
> >  ui/icons/qemu_512x512.png                      | Bin 0 -> 34609 bytes
> >  ui/icons/qemu_64x64.png                        | Bin 0 -> 3588 bytes
> 
> How did you create the png files?
> Can you drop a script or Makefile for that into the ui/icons directory?

I used GIMP so that it created high quality antialiased pngs.

> Should we commit them to git, or generate at build time?
> Is the tool used something we can expect to be installed?

I tried using ImageMagick to convert SVG to PNG but the results
were really poor compared to GIMP - very fuzzy. Running with
-verbose I can see it is invoking inkscape to atually do the
conversion, and it tells inkscape to export a small image which
it then resizes, hence the quality loss. Also I think InkScape
is getting a bit unreasonable for a standard QEMU developer
install.

The icons are small enough that we shouldn't really worry about
having pre-rendered icons in GIT IMHO. They're not ever going to
change unless we replace our logo again.

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

  reply	other threads:[~2018-12-19 10:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-18 14:26 [Qemu-devel] [PATCH 0/3] Fix & improve icon display on GTK and SDL frontends Daniel P. Berrangé
2018-12-18 14:26 ` [Qemu-devel] [PATCH 1/3] ui: install logo icons to $prefix/share/icons Daniel P. Berrangé
2018-12-19  7:20   ` Gerd Hoffmann
2018-12-19 10:03     ` Daniel P. Berrangé [this message]
2018-12-19 10:19       ` Gerd Hoffmann
2018-12-19 10:23         ` Daniel P. Berrangé
2018-12-18 14:26 ` [Qemu-devel] [PATCH 2/3] ui: fix icon display for GTK frontend under GNOME Shell with Wayland Daniel P. Berrangé
2018-12-18 14:26 ` [Qemu-devel] [PATCH 3/3] sdl: add support for high resolution window icon Daniel P. Berrangé
2018-12-25  1:34 ` [Qemu-devel] [PATCH 0/3] Fix & improve icon display on GTK and SDL frontends no-reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181219100325.GC20465@redhat.com \
    --to=berrange@redhat.com \
    --cc=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).