unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [RFC PATCH] emacs: add notmuch-logo.svg
@ 2021-11-01 22:53 Tomi Ollila
  2021-11-01 23:56 ` David Bremner
  2021-11-08 20:27 ` Rudolf Adamkovič
  0 siblings, 2 replies; 3+ messages in thread
From: Tomi Ollila @ 2021-11-01 22:53 UTC (permalink / raw)
  To: notmuch; +Cc: tomi.ollila

handcrafted scalable vector graphics version of the notmuch logo

for sharper image
---

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...

(did not run (xml) conformity check (just realized should do) -- anyway
I did not see anything non-conforming there ;D

 emacs/notmuch-logo.svg | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 emacs/notmuch-logo.svg

diff --git a/emacs/notmuch-logo.svg b/emacs/notmuch-logo.svg
new file mode 100644
index 00000000..6625e651
--- /dev/null
+++ b/emacs/notmuch-logo.svg
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" height="220" width="200">
+  <circle cx="100" cy="10" r="10" />
+  <g transform="translate(100 40) rotate(20)">
+    <circle cx="-94" cy="0" r="6" />
+    <circle cx="94"  cy="0" r="6" />
+    <path d="M-94 -1  L0 -6  L94 -1 L94 1  L0 6  L-94 1 Z" />
+  </g>
+  <path d="M98 5  L90 200
+	   A10 10  0  0 1  80 210   L40 210   A10 10  0  0 0  30 220
+	   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">
+    <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" />
+    <polyline points="10 66  40 86  70 66" fill="none" />
+  </g>
+  <path d="M-35 0  A50 40  0  0 0  35 0" transform="translate(40 102)" />
+  <path d="M-35 0  A50 40  0  0 0  35 0" transform="translate(160 146)" />
+  <g fill="none" stroke="#000" stroke-width="2">
+    <path d="M16 104  l24 -85  l24 85 Z" />
+    <path d="M184 148  l-24 -85  l-24 85 Z" />
+  </g>
+</svg>
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [RFC PATCH] emacs: add notmuch-logo.svg
  2021-11-01 22:53 [RFC PATCH] emacs: add notmuch-logo.svg Tomi Ollila
@ 2021-11-01 23:56 ` David Bremner
  2021-11-08 20:27 ` Rudolf Adamkovič
  1 sibling, 0 replies; 3+ messages in thread
From: David Bremner @ 2021-11-01 23:56 UTC (permalink / raw)
  To: Tomi Ollila

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [RFC PATCH] emacs: add notmuch-logo.svg
  2021-11-01 22:53 [RFC PATCH] emacs: add notmuch-logo.svg Tomi Ollila
  2021-11-01 23:56 ` David Bremner
@ 2021-11-08 20:27 ` Rudolf Adamkovič
  1 sibling, 0 replies; 3+ messages in thread
From: Rudolf Adamkovič @ 2021-11-08 20:27 UTC (permalink / raw)
  To: notmuch

Tomi Ollila <tomi.ollila@iki.fi> writes:

> handcrafted scalable vector graphics version of the notmuch logo
>
> for sharper image

Wow. Great work! Please someone merge this yesterday.

Rudy
-- 
"'Contrariwise,' continued Tweedledee, 'if it was so, it might be; and if it were so, it would be; but as it isn't, it ain't. That's logic.'" -- Lewis Carroll, Through the Looking Glass

Rudolf Adamkovič <salutis@me.com>
Studenohorská 25
84103 Bratislava
Slovakia

[he/him]\r

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-12-02 12:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-01 22:53 [RFC PATCH] emacs: add notmuch-logo.svg Tomi Ollila
2021-11-01 23:56 ` David Bremner
2021-11-08 20:27 ` Rudolf Adamkovič

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).