From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: chad Newsgroups: gmane.emacs.devel Subject: Re: High-res Customize icons Date: Tue, 21 Apr 2020 22:47:54 -0700 Message-ID: References: <6AEA7E43-DB35-458F-AFF2-B45DCBDC136F@gmail.com> <83a734fecm.fsf@gnu.org> <9713d235-11d4-b593-210a-e389c265e8ad@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000001996e105a3daadf7" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="8000"; mail-complaints-to="usenet@ciao.gmane.io" Cc: EMACS development team To: =?UTF-8?Q?Cl=C3=A9ment_Pit=2DClaudel?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 22 07:49:00 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 1jR8Fm-0001vP-Ko for ged-emacs-devel@m.gmane-mx.org; Wed, 22 Apr 2020 07:48:58 +0200 Original-Received: from localhost ([::1]:42514 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jR8Fl-00067u-Ln for ged-emacs-devel@m.gmane-mx.org; Wed, 22 Apr 2020 01:48:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53604) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jR8Ez-0005fl-Cf for emacs-devel@gnu.org; Wed, 22 Apr 2020 01:48:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jR8Ey-00081z-Hq for emacs-devel@gnu.org; Wed, 22 Apr 2020 01:48:09 -0400 Original-Received: from mail-yb1-xb36.google.com ([2607:f8b0:4864:20::b36]:41253) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jR8Ex-0007ru-W5 for emacs-devel@gnu.org; Wed, 22 Apr 2020 01:48:08 -0400 Original-Received: by mail-yb1-xb36.google.com with SMTP id a9so574031ybc.8 for ; Tue, 21 Apr 2020 22:48:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3L9jCRJoPiKLnZtiQlFBK/Z3/5WKG+VkABzMNr2nzGI=; b=XU4jX5vGO1bDx+fa1C5D8y3Ab5TY4o0cu2w8r0333AyIQ4Qd7DM1+zyjGuFYRbaHjz 8Bsvjs6GDTQ2CYEBLksYxMAYmQWVcFkySThFxux5OD/YHANJhm+WWDHErLcInW88m7Jn woA+QAMEcCB90Iyu6T0gm7QcWGSz5lHLwncvM+98YjbhRr0yX33IC4nntWJ7G6VZFnq8 JDR8MdowijuFJksyR4EZvu12VMhRc8bR1w3yj9iqdSle7Fa5kJ+VDGTlNeWT/EzAVTdO P6LHvdixmRPs7PKOsvewuaJlbqLdFt1CZ9LwYVvgq7pnVE/5UM8IJXP80YO64bFvD+Xb pm6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3L9jCRJoPiKLnZtiQlFBK/Z3/5WKG+VkABzMNr2nzGI=; b=KAHqOypB5D6ak+B/ukii4JZb6yZou4UzVKbNd3M4Jw074IZrZW2x5NNjTCBAnPtn1A HY1ICp5zZTI2Sskzj+mKL09Jj7nYzuJVoT76IZoy/t82cD2Q4Wga0y+WcRrlkcDx7yHa /nUJFmHHypNGlKOIOJz+dFD5j/wqdb4jNY6cE0fnla/vJQQ9qiThg3OYyKBtnXBqQOdI 1vck7fA69flz8Cwh/ZZSVZpFJhXgUWUiA9HvnUms1yGnZzp/l5z9n/Ar74qrjleyd4/s lZ/+AypyiE7xy5Z1Kr/VQwzLOycoq1uG0UZ3qMP/MtZkIZSzNrLRLja9gZPdVaB4g3Zk 0h1w== X-Gm-Message-State: AGi0PuZk9erRGi/t3UNeuluLxbu0i+jUPBoAyQ29t5CMX5zWkLVSJVOH oWT9tiLfU2UjIlTuw546rMsVWJSRhZmkuPTrkgI= X-Google-Smtp-Source: APiQypLqfu3TWoo0zso0hGmwN81oV5YCj4cotVK0KYHZCE3fo94iEKmc3lijHWKEae1MbgQuverC8uscfw9xfoo1o04= X-Received: by 2002:a25:7bc7:: with SMTP id w190mr32937008ybc.413.1587534485885; Tue, 21 Apr 2020 22:48:05 -0700 (PDT) In-Reply-To: <9713d235-11d4-b593-210a-e389c265e8ad@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::b36; envelope-from=yandros@gmail.com; helo=mail-yb1-xb36.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::b36 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:247500 Archived-At: --0000000000001996e105a3daadf7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Worth noting: If I understand correctly, the toolbar buttons are not the same sort of emacs item as the Customize buttons; the former are restricted specifically to the toolbar (and maybe the tab-bar, now?), and use a traditional GUI update/repaint/etc method, whereas customize buttons appear in buffers, and have to deal with the redisplay engine, as well as needing to work in both terminal and various-gui frames. It might be possible to use xwidgets to put gui toolkit buttons into buffers. I've just started looking at the xwidget stuff myself, for webkit integration. It seems somewhat unstable, but that might be webkit or my unusual environment. Hope that helps, ~Chad On Tue, Apr 21, 2020 at 7:37 PM Cl=C3=A9ment Pit-Claudel wrote: > 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=E2=80=99t find the code that inserts the icons. = I tried > grepping for =E2=80=9Cxpm=E2=80=9D, =E2=80=9Cbpm=E2=80=9D and the like in= custom.el and under /lisp but > didn=E2=80=99t 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 SV= G > images. I use a variant of that in my Emacs modes, to get scalable icons > in (GTK) toolbars. > > --0000000000001996e105a3daadf7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Worth noting: If I understand correctly, the toolbar butto= ns are not the same sort of emacs item as the Customize buttons; the former= are restricted specifically to the toolbar (and maybe the tab-bar, now?), = and use a traditional GUI update/repaint/etc method, whereas customize butt= ons appear in buffers, and have to deal with the redisplay engine, as well = as needing to work in both terminal and various-gui frames.=C2=A0

<= /div>
It might be possible to use xwidgets to put gui toolkit buttons i= nto buffers. I've just started looking at the xwidget stuff myself, for= webkit integration. It seems somewhat unstable, but that might be webkit o= r my unusual environment.

Hope that helps,
~Chad


On Tue, Apr 21, 2020 at 7:37 PM Cl=C3=A9ment = Pit-Claudel <cpitclaudel@gmail.= com> wrote:
On 21/04/2020 22.23, Eli Zaretskii wrote:
>> From: Yuan Fu <casouri@gmail.com>
>> Date: Tue, 21 Apr 2020 15:47:18 -0400
>>
>> I want to add high-res icons for Customize so it look better on Ma= c. The problem is, I couldn=E2=80=99t find the code that inserts the icons.= I tried grepping for =E2=80=9Cxpm=E2=80=9D, =E2=80=9Cbpm=E2=80=9D and the = like in custom.el and under /lisp but didn=E2=80=99t find anything. Where s= hould 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-expressio= n load PNG and SVG images.=C2=A0 I use a variant of that in my Emacs modes,= to get scalable icons in (GTK) toolbars.

--0000000000001996e105a3daadf7--