unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Manuel Giraud via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Visuwesh <visuweshm@gmail.com>
Cc: 67174@debbugs.gnu.org
Subject: bug#67174: 30.0.50; [PATCH] What about a vectorized Gnus mode-line logo?
Date: Sat, 03 Feb 2024 12:53:20 +0100	[thread overview]
Message-ID: <87h6ipkawg.fsf@ledu-giraud.fr> (raw)
In-Reply-To: <87a5qx9p5h.fsf@gmail.com> (Visuwesh's message of "Wed, 29 Nov 2023 09:39:14 +0530")

[-- Attachment #1: Type: text/plain, Size: 620 bytes --]

Visuwesh <visuweshm@gmail.com> writes:

[...]

> That would be nice to have since I do like the little splash of
> colour.

Hi Visuwesh (and all),

What do you think of this attached patch?  Now that SVG are honoring the
colors of the face property, I just add a face property to the logo.

I have chosen 'font-lock-function-name-face' because it is a somewhat
standard face and it is of color Blue1 (#0000ff) with the default Emacs
theme (this is the same color of the XPM logo).

Using a face property also have the nice property (😁) of automatically
adapt to any other theme.
-- 
Manuel Giraud

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Colorize-SVG-Gnus-logo-in-mode-line.patch --]
[-- Type: text/x-patch, Size: 820 bytes --]

> From 6ba6a224c86f845a61f951c6b664b415a5914142 Mon Sep 17 00:00:00 2001
From: Manuel Giraud <manuel@ledu-giraud.fr>
Date: Sat, 3 Feb 2024 12:15:21 +0100
Subject: [PATCH] Colorize SVG Gnus logo in mode line

* lisp/gnus/gnus.el (gnus-mode-line-buffer-identification):
Add a face property to colorized the SVG Gnus logo.
---
 lisp/gnus/gnus.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el
index 99833e4eeca..9366624fe03 100644
--- a/lisp/gnus/gnus.el
+++ b/lisp/gnus/gnus.el
@@ -333,6 +333,7 @@ gnus-mode-line-buffer-identification
 		  (:type xbm :file "gnus-pointer.xbm"
 			 :ascent center))
 		t)
+               'face 'font-lock-function-name-face
 	       'help-echo (if gnus-emacs-version
                               (format
 			       "This is %s, %s."
-- 
2.43.0


  reply	other threads:[~2024-02-03 11:53 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-14 14:00 bug#67174: 30.0.50; [PATCH] What about a vectorized Gnus mode-line logo? Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-11-15  9:59 ` Eric Abrahamsen
2023-11-15 12:19   ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-11-19 20:10     ` Eric Abrahamsen
2023-11-20  9:23       ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-11-20 18:01         ` Eric Abrahamsen
2023-11-20 19:35           ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-11-26  7:25 ` Visuwesh
2023-11-27  9:01   ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-11-29  4:09     ` Visuwesh
2024-02-03 11:53       ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-02-08 14:08         ` Visuwesh
2024-02-08 15:52           ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-08 21:42             ` Stefan Kangas
2024-02-09  0:43               ` Visuwesh
2024-02-09 10:14               ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-10 11:19                 ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h6ipkawg.fsf@ledu-giraud.fr \
    --to=bug-gnu-emacs@gnu.org \
    --cc=67174@debbugs.gnu.org \
    --cc=manuel@ledu-giraud.fr \
    --cc=visuweshm@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).