From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#51556: 29.0.50; Poor contrast of Customize SVG icons with dark backgrounds Date: Tue, 2 Nov 2021 11:58:17 -0700 Message-ID: References: <87v91b92v6.fsf@gmail.com> <83fssflmcg.fsf@gnu.org> <68034911-bc12-0c9e-cabb-c870628fd80c@gmail.com> <83a6imlo23.fsf@gnu.org> <83tuguk3h2.fsf@gnu.org> <83k0hqjywm.fsf@gnu.org> <83ee7yjxb1.fsf@gnu.org> <83a6imjv2o.fsf@gnu.org> <18066bc0-86a6-5901-9a53-e2c6ea13fbc8@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7690"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51556@debbugs.gnu.org, kevin.legouguec@gmail.com To: Jim Porter , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 02 19:59:11 2021 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 1mhz02-0001pS-N8 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Nov 2021 19:59:10 +0100 Original-Received: from localhost ([::1]:52272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mhz01-0005nn-GQ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Nov 2021 14:59:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48252) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhyzv-0005lX-5R for bug-gnu-emacs@gnu.org; Tue, 02 Nov 2021 14:59:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54779) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mhyzt-0000mn-TS for bug-gnu-emacs@gnu.org; Tue, 02 Nov 2021 14:59:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mhyzt-0004Il-SC for bug-gnu-emacs@gnu.org; Tue, 02 Nov 2021 14:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Nov 2021 18:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51556 X-GNU-PR-Package: emacs Original-Received: via spool by 51556-submit@debbugs.gnu.org id=B51556.163587950716438 (code B ref 51556); Tue, 02 Nov 2021 18:59:01 +0000 Original-Received: (at 51556) by debbugs.gnu.org; 2 Nov 2021 18:58:27 +0000 Original-Received: from localhost ([127.0.0.1]:38092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhyzL-0004H4-An for submit@debbugs.gnu.org; Tue, 02 Nov 2021 14:58:27 -0400 Original-Received: from mail-pl1-f176.google.com ([209.85.214.176]:39793) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhyzJ-0004Gm-IO for 51556@debbugs.gnu.org; Tue, 02 Nov 2021 14:58:25 -0400 Original-Received: by mail-pl1-f176.google.com with SMTP id t21so275356plr.6 for <51556@debbugs.gnu.org>; Tue, 02 Nov 2021 11:58:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=XaQUZ8wXoR5hV4iwvmcO5kdEGFo/emUhXiOpKP1Z45A=; b=tVzaQ71koKHx3cEeqK9d7c/7IS4RoWgek2aZEm1AC1M+kCVt3sOPNzNUsZldMPEJiJ AlgNxjC85M/7Xf2whxy2zBxvFaM6zrwLDeUffuVYHrIt9VRTWG9lzrI6iSTPRpwSDeA8 qMtwqyQAM+sjd0l9Aa+G+aN39dJPv9qYVAH68EAwMA1E3D9Bj9nP50emRyyw1cwCigbz fglXxAVMlLm5v8ZL/b2V0zJOf8IQXJkbohRvdp5uFqFUbA3cfFUn7NXjIvo0shrW+mRE ojSHvYCtdHONYjacCOJV94mpcHerof6EWIpBN29SJg/L7DWHiJvPqr+1j1cRft8FjSSS dDvA== X-Gm-Message-State: AOAM53387Ese3J8sn2G49kKlyRhUfdXLE1Vb8Ojt4JeNakJnSRgJFove X6lCJkljVgdm03jVoB6UpbmlH4ok9Iv3VfQByhc= X-Google-Smtp-Source: ABdhPJzr7Xj73gtFLMbc3olVOrsF4z5tgOah6JwHO+dn65FHVOhbdA/6vNcDvUvYg9iqIYy398SVLbZWhdOpYkSiz5g= X-Received: by 2002:a17:90a:be10:: with SMTP id a16mr8797124pjs.133.1635879498301; Tue, 02 Nov 2021 11:58:18 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 2 Nov 2021 11:58:17 -0700 In-Reply-To: <18066bc0-86a6-5901-9a53-e2c6ea13fbc8@gmail.com> 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:218828 Archived-At: Jim Porter writes: > I think it might help to break this problem down into parts. There are a > few cases I can think of where the question of how to color an SVG might > come up: Thanks, this summary is useful. I agree with all your points, but I have some comments. > 3) Dynamically-colored SVGs > > This could be considered a variant of (1). Sometimes, we might want to > define a particular shape, but give it different colors in different > contexts. For example, if we wanted to use SVGs to display something > similar to the circles in the fringe that mark GDB breakpoints, we could > have a single breakpoint.svg file that we color bright red or gray > depending on the breakpoint's state. I don't think this is fundamentally different from (1). The shape is independent from the color in both cases. > If you're the author of a little-known package, you can't really > expect theme authors to provide customized icons for your package that > fit with the theme. However, themes *do* specify at least a handful of > faces. As a package author, it would be convenient to be able to say > "render this icon using the foreground color of the `error' face", for > example. Then your package looks good with most themes without > requiring anyone to provide custom SVGs. Exactly the point. This goes for built-in packages as well.