From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: Using more and/or better icons in Emacs Date: Sat, 10 Apr 2021 00:16:16 +0100 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=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23668"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, Dmitry Gutov To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 10 01:17:13 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 1lV0NE-00061m-QB for ged-emacs-devel@m.gmane-mx.org; Sat, 10 Apr 2021 01:17:12 +0200 Original-Received: from localhost ([::1]:53270 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lV0ND-0004M3-Rw for ged-emacs-devel@m.gmane-mx.org; Fri, 09 Apr 2021 19:17:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lV0MT-0003xD-EZ for emacs-devel@gnu.org; Fri, 09 Apr 2021 19:16:25 -0400 Original-Received: from outbound.soverin.net ([116.202.65.218]:33531) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lV0MQ-000077-Ta for emacs-devel@gnu.org; Fri, 09 Apr 2021 19:16:24 -0400 Original-Received: from smtp.soverin.net (unknown [10.10.3.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id DD810601B7; Fri, 9 Apr 2021 23:16:19 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1618010179; bh=YLJ89jTjKdgnhslqlwDobmqs4Wv9KD2UCDmc9NUjqUo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QR6WGkFHbUWXMuLtOPUYn2Q+saan1Dl8IQC9bbmppvo64SdpRpNNegiZse+QEXo7J E4UyoiYJLJWr8ZG6c6ni6vasUjTUwbA/quJNZeeeacjuLZee9bFgQvLSviBDeXi2Nh kEapXY/mP//7VbQH55aBxALWW7scSnWgCAPZ4Tv5IyImMwoVylY31dtYu9pamOMEF7 mMBxzlSv/YGJRyfDptNJrWGHBAZw+ChjCUitnfbX2IkNBOm1qx5VupEyQfOK6SkfHc nwOPt606GiaIP4imL1BJLjtAh7vjpvFYrUa8F++R80s2ce88oZDuzCVuTMOBljvEhz x5vnZ4NniSx4Q== Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 63E1F202BBC64E; Sat, 10 Apr 2021 00:16:16 +0100 (BST) Mail-Followup-To: Alan Third , Stefan Kangas , Dmitry Gutov , emacs-devel@gnu.org Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=116.202.65.218; envelope-from=alan@idiocy.org; helo=outbound.soverin.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham 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:267754 Archived-At: On Fri, Apr 09, 2021 at 12:46:57PM -0500, Stefan Kangas wrote: > I'm getting an SVG in the buffer that is actually taller than the line. > When we added new SVG icons to customize recently, Alan Third fiddled > with the height and viewport in the SVG file to force it to be the same > height as the line. > > But is there any way to do this directly from Emacs? It seems like a > pain to have to edit the SVG file for every icon (and my attempts at > doing so has failed so far...). 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. We'd also probably want to remove most of the colour information (or replace it with 'currentColor'). At least for simple two colour images. -- Alan Third