From: Tomi Ollila <tomi.ollila@iki.fi>
To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org
Subject: Re: [PATCH v2] emacs: add notmuch-logo.svg and use it in emacs mua on graphic displays
Date: Fri, 17 Dec 2021 00:10:41 +0200 [thread overview]
Message-ID: <m2o85gtd3y.fsf@guru.guru-group.fi> (raw)
In-Reply-To: <87y24ko5xi.fsf@tethera.net>
On Thu, Dec 16 2021, David Bremner wrote:
> Tomi Ollila <tomi.ollila@iki.fi> writes:
>
>> emacs/notmuch-logo.svg is handcrafted scalable vector graphics version
>> of the notmuch logo.
>>
>> Emacs on graphic displays render this image four times in size compared
>> to the emacs/notmuch-logo.png, and the image is much sharper.
>>
>> The rendered image size, 100x110 pixels, fits reasonably well with
>> text shown in various font sizes.
>>
>> Scaling the image -- if desired -- may come in the future. For now
>> this is improvement on how the logo looked in notmuch-hello window.
>
> I wish it was possible to scale in units relative to text size. For me
> with default settings it looks a bit big (see attached). Anyway, I can
> live with this (not least since I don't normally display the logo).
Nice font, is that 20 pixels in height ? (and what font is it ?)
> Anyone else want to chime in before I apply this change?
I personally tried with 12x25 sized font (xrandr tells 1920x1200,
294mm x 165mm so what is that in dpi...) -- and it could be that
majority of users uses smaller font so it could look a bit tall.
Let's wait for a while for more comments.
In the meanwhile, after sending the patch email, I noticed that the
.png is 50x58 in size and .svg 110x100 (I accidentally swapped
dimensions). So now I tried to drop 10 pixels from bottom (making
it 100x100) which makes it look a bit more like the original.
The modified image is available below; the html "decoration" is
for your entertainment: copy the whole content into a file.html,
open file://$PWD/file.html in your web browser -- if web browser
is firefox, ctrl-+ and ctrl-- scales the image...
Tomi
--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body {
background-color: #777;
}
</style>
</head>
<body>
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg"
height="100" width="100" fill="#000" stroke-width="1">
<circle cx="50" cy="5" r="5" />
<g transform="translate(50 20) rotate(20)">
<circle cx="-47" cy="0" r="3" />
<circle cx="47" cy="0" r="3" />
<path d="M-47 -1 L0 -3 L47 -1 L47 1 L0 3 L-47 1 Z" />
</g>
<path d="M49 4 L45 90
A5 5 0 0 1 40 95 L20 95 A5 5 0 0 0 15 100
L85 100
A5 5 0 0 0 80 95 L60 95 A5 5 0 0 1 55 90
L55 90 L51 4 Z" />
<g fill="#fff" stroke="#000">
<rect x="7" y="33" width="30" height="18" />
<line x1="7" y1="51" x2="18" y2="41" />
<line x1="37" y1="51" x2="26" y2="41" />
<polyline points="7 33 22 44 37 33" fill="none" />
</g>
<path d="M-18 0 A25 20 0 0 0 18 0" transform="translate(22 51)" />
<path d="M-18 0 A25 20 0 0 0 18 0" transform="translate(78 72)" />
<g fill="none" stroke="#000">
<path d="M9 52 l13 -42 l13 42" />
<path d="M91 73 l-13 -42 l-13 42" />
</g>
</svg>
</body>
</html>
--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--
next prev parent reply other threads:[~2021-12-16 22:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-14 22:10 [PATCH v2] emacs: add notmuch-logo.svg and use it in emacs mua on graphic displays Tomi Ollila
2021-12-16 16:44 ` David Bremner
2021-12-16 22:10 ` Tomi Ollila [this message]
2021-12-21 11:04 ` David Bremner
2021-12-21 13:44 ` Alexander Adolf
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=m2o85gtd3y.fsf@guru.guru-group.fi \
--to=tomi.ollila@iki.fi \
--cc=david@tethera.net \
--cc=notmuch@notmuchmail.org \
/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).