unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Po Lu <luangruo@yahoo.com>
To: emacs-devel@gnu.org
Cc: Stefan Kangas <stefan@marxist.se>
Subject: Re: scratch/icons 4de626ea22 08/11: Support using icons.el in toolbar
Date: Wed, 24 Aug 2022 14:50:34 +0800	[thread overview]
Message-ID: <875yii2kzp.fsf@yahoo.com> (raw)
In-Reply-To: <20220824064044.B7530C0088A@vcs2.savannah.gnu.org> (Stefan Kangas's message of "Wed, 24 Aug 2022 02:40:44 -0400 (EDT)")

Stefan Kangas <stefankangas@gmail.com> writes:

>      `(find-image (cond ((not (display-color-p))
> -			',(list pbm-spec xbm-spec xpm-lo-spec xpm-spec))
> +                        ',(list svg-spec pbm-spec xbm-spec xpm-lo-spec xpm-spec))
>  		       ((< (display-color-cells) 256)
> -			',(list xpm-lo-spec xpm-spec pbm-spec xbm-spec))
> +                        ',(list svg-spec xpm-lo-spec xpm-spec pbm-spec xbm-spec))

Non-color displays and displays whose visual class is not TrueColor
cannot display SVG images.  The svg code just doesn't work.

So SVG should only be enabled in the case that (display-visual-class) is
true-color.



  parent reply	other threads:[~2022-08-24  6:50 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <166132324164.29491.8702393664945861865@vcs2.savannah.gnu.org>
     [not found] ` <20220824064044.65239C0088A@vcs2.savannah.gnu.org>
2022-08-24  6:45   ` scratch/icons 09509f4fa1 05/11: Import Material design icons Po Lu
2022-08-24  7:06     ` Stefan Kangas
2022-08-24 10:40       ` Po Lu
2022-08-24 11:28         ` Eli Zaretskii
2022-08-24 12:05           ` Po Lu
2022-08-24 12:11             ` Lars Ingebrigtsen
2022-08-24 12:28               ` Po Lu
2022-08-24 23:09                 ` Stefan Kangas
2022-08-24 12:21             ` Eli Zaretskii
2022-08-24 12:38               ` Po Lu
2022-08-24 12:09       ` Stefan Monnier
2022-08-24 12:28         ` Eli Zaretskii
     [not found] ` <20220824064044.DC0C2C0088A@vcs2.savannah.gnu.org>
2022-08-24  6:46   ` scratch/icons 67251e79f7 09/11: Use material icons in mpc toolbar Po Lu
2022-08-24  7:21     ` Stefan Kangas
     [not found] ` <20220824064044.B7530C0088A@vcs2.savannah.gnu.org>
2022-08-24  6:50   ` Po Lu [this message]
2022-08-24  7:20     ` scratch/icons 4de626ea22 08/11: Support using icons.el in toolbar Stefan Kangas
2022-08-24 10:31       ` Po Lu
2022-08-24 12:07     ` Stefan Monnier
2022-08-24 12:27       ` Po Lu

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=875yii2kzp.fsf@yahoo.com \
    --to=luangruo@yahoo.com \
    --cc=emacs-devel@gnu.org \
    --cc=stefan@marxist.se \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).