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.devel Subject: Re: Using more and/or better icons in Emacs Date: Fri, 9 Apr 2021 19:55:52 -0500 Message-ID: References: <597310b6-892c-a7d9-a663-f270ed3b0f0e@yandex.ru> <2f0b4786-d569-27e6-fa8a-fb47bf08b166@yandex.ru> <0279fbc8-74c3-3766-2b26-b3eb933a501e@yandex.ru> 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="35652"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Dmitry Gutov , emacs-devel@gnu.org To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 10 02:56:56 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lV1vk-0009D6-8N for ged-emacs-devel@m.gmane-mx.org; Sat, 10 Apr 2021 02:56:56 +0200 Original-Received: from localhost ([::1]:47740 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lV1vj-0002sS-9y for ged-emacs-devel@m.gmane-mx.org; Fri, 09 Apr 2021 20:56:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47870) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lV1ul-0002Bv-N5 for emacs-devel@gnu.org; Fri, 09 Apr 2021 20:55:55 -0400 Original-Received: from mail-pl1-f182.google.com ([209.85.214.182]:36542) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lV1uk-0002oo-6Z for emacs-devel@gnu.org; Fri, 09 Apr 2021 20:55:55 -0400 Original-Received: by mail-pl1-f182.google.com with SMTP id ay2so3559102plb.3 for ; Fri, 09 Apr 2021 17:55:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=NYe0ElOnzCE7LBGlTDXDmB1e0fyExxyAU+RW/WWr/ks=; b=NBXaqNmoMM+GT9oJTfJccaiPo6N0kwGJYhpz6vDhoT4Y2TKxKCWpPBAtIGBjFZAjvn xvjjLdg+1W9AOFjEx1hvBKhRUvkcYYb9EXma00P5JFUW93sWe/0alNlUUbqOXquX6A5s ueS1ighkOUP+b9K4mNksfbBwyOdCWeciWBSPZN1eb1VyzXa8lpF68Aj9npf+6CX53x1A xff9LMl5hpmoK5QC+fRFcdQrffAFC9jATEmgBVhMTpYGG9JE8TfCN/QEbI5lzdZ7PFKj dCedXy6Q9hEWR1FCr8erNrFoeI25cnzKqJYDg9RRSscatFyOFgTH8SQoAu8r9xLxqa5S SjXg== X-Gm-Message-State: AOAM532JftYMwt9H0cRDx/OfUPbxoT4P299NeeWTCZMIRjfmp52oX4QA RGU61UxcBDDtNyXL+MsuCUBjAsrvk1LE55ZzIIQ= X-Google-Smtp-Source: ABdhPJzP/z61SZqTKpy19I9/iuq4+p6yOjKLzqtugjE1uViPzg/QFrQ64teAa3aXj3f9nOmUVcD9f//PBYfUY1v3N2U= X-Received: by 2002:a17:90b:f0b:: with SMTP id br11mr4244392pjb.179.1618016152638; Fri, 09 Apr 2021 17:55:52 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 9 Apr 2021 19:55:52 -0500 In-Reply-To: Received-SPF: pass client-ip=209.85.214.182; envelope-from=stefankangas@gmail.com; helo=mail-pl1-f182.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:267760 Archived-At: Alan Third writes: > BTW, looking at those icons all you should have to do is set the width > and height to "1em". I had to insert the viewBox on the other ones > because they didn't have one to begin with, just the width and height. [Please see my other email about how to insert these into a buffer.] > We'd also probably want to remove most of the colour information (or > replace it with 'currentColor'). At least for simple two colour > images. Hmm, if we are going to use these we should probably write a script to import them for our use. It might be nice to do it in ELisp, or we could use a Python or Shell script or something. Do we have any ELisp code to manipulate SVG image files? Otherwise, we could perhaps get away with some hacky regexps for this (to avoid having to do a proper job with XML, which is rarely fun IME). I welcome any opinions on how to go about doing this without overly compromising my sanity.