From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Qiantan Hong Newsgroups: gmane.emacs.bugs Subject: bug#36315: Incorrect SVG color Date: Fri, 18 Dec 2020 15:51:15 +0000 Message-ID: References: <600074EB-59CF-4475-A28F-C1F9D05631FB@mit.edu> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Apple-Mail=_2AE02DA8-F5FF-459E-B3E4-983BD1C8E56B"; protocol="application/pgp-signature"; micalg=pgp-sha256 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13987"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "36315@debbugs.gnu.org" <36315@debbugs.gnu.org> To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 18 16:58:43 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kqI9T-0003W2-63 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Dec 2020 16:58:43 +0100 Original-Received: from localhost ([::1]:36700 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqI9S-0007LM-7x for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Dec 2020 10:58:42 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqI30-0002pd-LW for bug-gnu-emacs@gnu.org; Fri, 18 Dec 2020 10:52:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56386) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kqI30-0002BB-Co for bug-gnu-emacs@gnu.org; Fri, 18 Dec 2020 10:52:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kqI30-0005BJ-An for bug-gnu-emacs@gnu.org; Fri, 18 Dec 2020 10:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Qiantan Hong Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Dec 2020 15:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36315 X-GNU-PR-Package: emacs Original-Received: via spool by 36315-submit@debbugs.gnu.org id=B36315.160830671319900 (code B ref 36315); Fri, 18 Dec 2020 15:52:02 +0000 Original-Received: (at 36315) by debbugs.gnu.org; 18 Dec 2020 15:51:53 +0000 Original-Received: from localhost ([127.0.0.1]:39699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqI2q-0005Au-MX for submit@debbugs.gnu.org; Fri, 18 Dec 2020 10:51:52 -0500 Original-Received: from outgoing-exchange-5.mit.edu ([18.9.28.59]:45049) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqI2o-0005Af-TH for 36315@debbugs.gnu.org; Fri, 18 Dec 2020 10:51:51 -0500 Original-Received: from w92exedge3.exchange.mit.edu (W92EXEDGE3.EXCHANGE.MIT.EDU [18.7.73.15]) by outgoing-exchange-5.mit.edu (8.14.7/8.12.4) with ESMTP id 0BIFnYc1021531; Fri, 18 Dec 2020 10:51:45 -0500 Original-Received: from w92expo16.exchange.mit.edu (18.7.74.70) by w92exedge3.exchange.mit.edu (18.7.73.15) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Fri, 18 Dec 2020 10:50:59 -0500 Original-Received: from oc11expo16.exchange.mit.edu (18.9.4.47) by w92expo16.exchange.mit.edu (18.7.74.70) with Microsoft SMTP Server (TLS) id 15.0.1365.1; Fri, 18 Dec 2020 10:51:15 -0500 Original-Received: from oc11expo16.exchange.mit.edu ([18.9.4.47]) by oc11expo16.exchange.mit.edu ([18.9.4.47]) with mapi id 15.00.1365.000; Fri, 18 Dec 2020 10:51:15 -0500 Thread-Topic: bug#36315: Incorrect SVG color Thread-Index: AQHW1Negt08aCYZiB0KGMTjjfTDB1qn9RzQAgAAOKYA= In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [18.18.96.24] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:196334 Archived-At: --Apple-Mail=_2AE02DA8-F5FF-459E-B3E4-983BD1C8E56B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I suspect it is some weird thing about macOS, because now the SVG color is brighter instead of darker... > On Dec 18, 2020, at 10:00 AM, Alan Third wrote: >=20 > On Fri, Dec 18, 2020 at 12:49:23AM +0000, Qiantan Hong wrote: >> Is there any update on this bug? >> The current behavior is unacceptable when the SVG color >> is supposed to be the same as some color in Emacs >> (in my case, I=E2=80=99m using SVG to build some UI elements), >> The following code >>=20 >> (require 'svg) >>=20 >> (defun make-image (color) >> (let ((svg (svg-create 100 100))) >> (svg-rectangle svg 0 0 100 100 :fill color) >> (svg-image svg))) >>=20 >> (set-frame-parameter (window-frame) 'background-color =E2=80=9C#f00000"= ) >>=20 >> (insert (propertize " " 'display (make-image "#f00000"))) >>=20 >> produce very notable color difference. >=20 > I can no longer replicate this on the master branch on macOS. We've > out-sourced colour handling fully to librsvg now, so that may make the > difference? >=20 > Either that or macOS is doing something unusual with colours, which I > wouldn't rule out. > -- > Alan Third --Apple-Mail=_2AE02DA8-F5FF-459E-B3E4-983BD1C8E56B Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEuJGkbeynKj/ysbVCxqEIuLoj4IIFAl/cz/MACgkQxqEIuLoj 4IKlqwf/bjeTbVt6Hdj3cr/qds2uWF362Qd2XgAI9VVQhyVGJBEFuGc5GKfe21H3 DUlVQQ5fl5waxcN0yqzHBSOtC73TohSP52Az04MUy9xnc4OBFehsxbZx9C8GKjNc 58dmuMFCUQV2t2bmTUL34hjABiZaNdoCtRLxRQf5579HKeAdmGKF8rIH/ZEU5O+y Xdq6NvuHAbQnsW22hWEZRjSyFNKNI9dxwyddnrQ7z47LH8GKXH/IXGXTDZ9btNIG Znqz+HudnGgRCbvNwhgk01LPdUl0Kggt+rpBKxtWSgTaC0CO7WRRMNOY3JhM79tm 5pv+hTQQO6rHiTYh7mjo7BTFa7i/mw== =lSTc -----END PGP SIGNATURE----- --Apple-Mail=_2AE02DA8-F5FF-459E-B3E4-983BD1C8E56B--