From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#62562: 30.0.50; [PATCH] Some new SVG icons Date: Sun, 02 Apr 2023 19:27:15 +0300 Organization: LINKOV.NET Message-ID: <86355ieljw.fsf@mail.linkov.net> References: <4AF38B23-5E3A-41F3-9790-5BBBE9C69236@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24883"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: Eli Zaretskii , Stefan Kangas , 62562@debbugs.gnu.org To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 02 18:42:40 2023 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 1pj0mt-0006C9-CE for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Apr 2023 18:42:39 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pj0mL-0003nT-0d; Sun, 02 Apr 2023 12:42:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pj0mJ-0003n3-9D for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2023 12:42:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pj0mJ-0007Wy-0x for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2023 12:42:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pj0mI-0000wf-Sz for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2023 12:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Apr 2023 16:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62562 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 62562-submit@debbugs.gnu.org id=B62562.16804536823556 (code B ref 62562); Sun, 02 Apr 2023 16:42:02 +0000 Original-Received: (at 62562) by debbugs.gnu.org; 2 Apr 2023 16:41:22 +0000 Original-Received: from localhost ([127.0.0.1]:42498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pj0le-0000vH-BU for submit@debbugs.gnu.org; Sun, 02 Apr 2023 12:41:22 -0400 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:52279) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pj0lc-0000un-3f for 62562@debbugs.gnu.org; Sun, 02 Apr 2023 12:41:21 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id BC647E0002; Sun, 2 Apr 2023 16:41:12 +0000 (UTC) In-Reply-To: <4AF38B23-5E3A-41F3-9790-5BBBE9C69236@gmail.com> (Yuan Fu's message of "Sat, 1 Apr 2023 12:38:39 -0700") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:259117 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit > I wonder if there could be a command like list-icon-images that shows users > the icon images they can use? I'm using `t' (dired-toggle-marks) on all files in Dired in an image dir, then `C-t C-t' (image-dired-dired-toggle-marked-thumbs). > Also CC’ing Juri, since I think maybe tab-bar can take advantage of some > of these icons :-) After adapting new icons to tab-bar they look nice. I invite everyone to try out this patch to see how good they look: --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: inline; filename=tab-bar-symbols.patch Content-Transfer-Encoding: 8bit diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el index 7c3069ca269..044fdc852e0 100644 --- a/lisp/tab-bar.el +++ b/lisp/tab-bar.el @@ -162,7 +162,7 @@ tab-bar--load-buttons (declare-function icons--register "icons") (unless (iconp 'tab-bar-new) (define-icon tab-bar-new nil - `((image "tabs/new.xpm" + `((image "symbols/plus_16.svg" "tabs/new.xpm" :margin ,tab-bar-button-margin :ascent center) ;; (emoji "βž•") @@ -175,7 +175,7 @@ tab-bar--load-buttons (unless (iconp 'tab-bar-close) (define-icon tab-bar-close nil - `((image "tabs/close.xpm" + `((image "symbols/cross_16.svg" "tabs/close.xpm" :margin ,tab-bar-button-margin :ascent center) ;; (emoji " ❌") @@ -189,7 +189,10 @@ tab-bar--load-buttons (unless (iconp 'tab-bar-menu-bar) (define-icon tab-bar-menu-bar nil - '(;; (emoji "πŸ”") + `((image "symbols/menu_16.svg" + :margin ,tab-bar-button-margin + :ascent center) + ;; (emoji "πŸ”") (symbol "☰") (text "Menu" :face tab-bar-tab-inactive)) "Icon for the menu bar." @@ -2133,7 +2142,7 @@ tab-bar-history-mode (unless (iconp 'tab-bar-back) (define-icon tab-bar-back nil - `((image "tabs/left-arrow.xpm" + `((image "symbols/chevron_left_16.svg" "tabs/left-arrow.xpm" :margin ,tab-bar-button-margin :ascent center) (text " < ")) @@ -2143,7 +2152,7 @@ tab-bar-history-mode (unless (iconp 'tab-bar-forward) (define-icon tab-bar-forward nil - `((image "tabs/right-arrow.xpm" + `((image "symbols/chevron_right_16.svg" "tabs/right-arrow.xpm" :margin ,tab-bar-button-margin :ascent center) (text " > ")) --=-=-=--