From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: High-res Customize icons Date: Tue, 21 Apr 2020 22:37:23 -0400 Message-ID: <9713d235-11d4-b593-210a-e389c265e8ad@gmail.com> References: <6AEA7E43-DB35-458F-AFF2-B45DCBDC136F@gmail.com> <83a734fecm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="33672"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 22 04:38:19 2020 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 1jR5HH-0008fS-Fe for ged-emacs-devel@m.gmane-mx.org; Wed, 22 Apr 2020 04:38:19 +0200 Original-Received: from localhost ([::1]:39904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jR5HG-0005s1-Hf for ged-emacs-devel@m.gmane-mx.org; Tue, 21 Apr 2020 22:38:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35428) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jR5GT-0005S9-Ed for emacs-devel@gnu.org; Tue, 21 Apr 2020 22:37:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jR5GS-0004fX-1Y for emacs-devel@gnu.org; Tue, 21 Apr 2020 22:37:29 -0400 Original-Received: from mail-qt1-x829.google.com ([2607:f8b0:4864:20::829]:33446) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jR5GR-0004LC-H6 for emacs-devel@gnu.org; Tue, 21 Apr 2020 22:37:27 -0400 Original-Received: by mail-qt1-x829.google.com with SMTP id 92so586443qtg.0 for ; Tue, 21 Apr 2020 19:37:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=qkqFd7RNwcKxHljVYmduz/LpizKenpNh4ORU/x1/+/Y=; b=CwbxmC5FI6T8wawrMKmMvtj7n6LThQQC7qdGgMVtMrNa5xD6qW+sYUR+Wzkv4sZmiI z/22tNZ6po7AX/5KmKqjhx7w53I+EKHzqSr3HdWB2yun/VYc6Sosav6kxNDgcpxKhdw0 NSAX5X5SbEyd/xan1zacJ9ApleWH8YRdiOis3r52onR/NAhuI3PjHHbNWfA5Ii4sTYHG iS+TlUba5+ZtkNkcidQx0a9lLfGvrFw7UbxYhixlNPnqYZ7whStWSigSYZpJXQt/T4tz kF8QuDY1fOea0VoqxxqJVogJ+ICFTDf3CrQ+wO1pb2HKJ0HeesxvKGXWOYRc2GLgFbDy 4RMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=qkqFd7RNwcKxHljVYmduz/LpizKenpNh4ORU/x1/+/Y=; b=mj3l3e955Ly+cy5bb4KKFCodzbpCrGsp0VA16XwaHfsGjinTAq7fXeYzv3PQ+l00Up LamK8uTpqhVgPZT3AQLFB7tiKws26mRX01o2dCGuAR1fLurOVfX+ENYoUlBt3nognSpJ TXyCdnmHPpLPvgrL/s7twyZizKos1Yr13lZ3l5QjIyhRsDZCrJA//B5mJsUPNBKs1X8q weKxBTXhRaS9/AYw10vvANbk1RR1LvuPQf5TgZIvyJ1EhnMIJtcryQU6k8qulK0RCOn0 DzNH5XqocTBrV/Z7+jHASI43946cP1x7f7o5DXNm56iuM0FAK9Zb8ZEgHGA1ruXC8Pey 5cJQ== X-Gm-Message-State: AGi0PuapLJ+RuAKlvTBpqRjQwwLOECkTjlEf+x176gxEfKNxNkPW95CJ SM4+q4y4EuOD2KSlg5oNhkiN4Dwm X-Google-Smtp-Source: APiQypLEsOLvcBuGLDwgw9NhbgF2lB65qVughL81kVL4kKX8dwScuN9/EalyAUjy7F7geWTBs54buw== X-Received: by 2002:ad4:4462:: with SMTP id s2mr22913541qvt.221.1587523045335; Tue, 21 Apr 2020 19:37:25 -0700 (PDT) Original-Received: from ?IPv6:2601:184:4180:66e7:40b5:9c78:223e:9420? ([2601:184:4180:66e7:40b5:9c78:223e:9420]) by smtp.googlemail.com with ESMTPSA id s14sm3179507qts.70.2020.04.21.19.37.24 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Apr 2020 19:37:24 -0700 (PDT) In-Reply-To: <83a734fecm.fsf@gnu.org> Content-Language: en-GB Received-SPF: pass client-ip=2607:f8b0:4864:20::829; envelope-from=cpitclaudel@gmail.com; helo=mail-qt1-x829.google.com X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-Received-From: 2607:f8b0:4864:20::829 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:247482 Archived-At: On 21/04/2020 22.23, Eli Zaretskii wrote: >> From: Yuan Fu >> Date: Tue, 21 Apr 2020 15:47:18 -0400 >> >> I want to add high-res icons for Customize so it look better on Mac. The problem is, I couldn’t find the code that inserts the icons. I tried grepping for “xpm”, “bpm” and the like in custom.el and under /lisp but didn’t find anything. Where should I look at? > > If you mean the icons on the tool bar, look in tool-bar.el, the > function tool-bar--image-expression. You might also be interested in q thread from 2017, https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00470.html, where I posted a patch to make tool-bar--image-expression load PNG and SVG images. I use a variant of that in my Emacs modes, to get scalable icons in (GTK) toolbars.