From: David Bremner <david@tethera.net>
To: Tomi Ollila <tomi.ollila@iki.fi>
Subject: Re: [RFC PATCH] emacs: add notmuch-logo.svg
Date: Mon, 01 Nov 2021 20:56:03 -0300 [thread overview]
Message-ID: <87v91bxwfg.fsf@tethera.net> (raw)
In-Reply-To: <20211101225336.29070-1-tomi.ollila@iki.fi>
Tomi Ollila <tomi.ollila@iki.fi> writes:
> handcrafted scalable vector graphics version of the notmuch logo
>
> for sharper image
> ---
>
nice work!
> Loads in emacs, on my screen letter was white on white background
> (emacs dark background) so hints how to make it look better on
> dark mode emacs (i.e. white lines instead of black) and how to
> have transparent background for everyone...
>
transparency seems easy?
diff --git a/emacs/notmuch-logo.svg b/emacs/notmuch-logo.svg
index 6625e651..b2600ea2 100644
--- a/emacs/notmuch-logo.svg
+++ b/emacs/notmuch-logo.svg
@@ -11,7 +11,7 @@
L170 220
A10 10 0 0 0 160 210 L120 210 A10 10 0 0 1 110 200
L110 200 L102 5 Z" />
- <g fill="#fff" stroke="#000" stroke-width="2">
+ <g fill="none" stroke="#000" stroke-width="2">
<rect x="10" y="66" width="60" height="36" />
<line x1="10" y1="102" x2="32" y2="81" />
<line x1="70" y1="102" x2="48" y2="81" />
I couldn't see an easy way to set the color in pure svg, but if you
translated your svg into elisp
https://www.gnu.org/software/emacs/manual/html_node/elisp/SVG-Images.html
then presumably you could interrogate emacs. I don't know all the
details, but there is some code in "circe" [1] to check the proposed
nick color has a high enough contrast ratio with the background color.
> (did not run (xml) conformity check (just realized should do) -- anyway
> I did not see anything non-conforming there ;D
>
[1]: https://github.com/emacs-circe/circe/blob/77e16de3b9fbaa0417b56a9acc70a9bca17c4ad0/circe-color-nicks.el
next prev parent reply other threads:[~2021-12-02 12:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-01 22:53 [RFC PATCH] emacs: add notmuch-logo.svg Tomi Ollila
2021-11-01 23:56 ` David Bremner [this message]
2021-11-08 20:27 ` Rudolf Adamkovič
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://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87v91bxwfg.fsf@tethera.net \
--to=david@tethera.net \
--cc=tomi.ollila@iki.fi \
/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://yhetil.org/notmuch.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).