From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sHAIBPLAqGEragEAgWs5BA (envelope-from ) for ; Thu, 02 Dec 2021 13:49:54 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id YOdUO/HAqGHxKgAAB5/wlQ (envelope-from ) for ; Thu, 02 Dec 2021 12:49:53 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B90231D49E for ; Thu, 2 Dec 2021 13:49:53 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 8096828E96; Thu, 2 Dec 2021 07:49:45 -0500 (EST) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id C9CCE28E94 for ; Thu, 2 Dec 2021 07:49:42 -0500 (EST) Received: by fethera.tethera.net (Postfix, from userid 1001) id 11FF15FC42; Thu, 2 Dec 2021 07:49:42 -0500 (EST) Received: (nullmailer pid 751345 invoked by uid 1000); Thu, 02 Dec 2021 12:49:40 -0000 Resent-To: notmuch@notmuchmail.org Resent-From: David Bremner Resent-Date: Thu, 02 Dec 2021 08:49:40 -0400 Resent-Message-ID: <87fsrb189n.fsf@tethera.net> From: David Bremner To: Tomi Ollila Subject: Re: [RFC PATCH] emacs: add notmuch-logo.svg In-Reply-To: <20211101225336.29070-1-tomi.ollila@iki.fi> References: <20211101225336.29070-1-tomi.ollila@iki.fi> Date: Mon, 01 Nov 2021 20:56:03 -0300 Message-ID: <87v91bxwfg.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: BG7U3PCFE4RG7CFEDMISS2UTDZ5YNBLB X-Message-ID-Hash: BG7U3PCFE4RG7CFEDMISS2UTDZ5YNBLB X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: FR ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638449393; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-to: resent-from:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-owner:list-unsubscribe: list-subscribe:list-post; bh=gxkSmxAHa9HOM8altuphqxAAv4cMkdsxQoTlGoF0sAk=; b=S/5232v5ua4ftVJ32pwWFXR/Qzb/rrGzsExijMOmK0tfpzfUrRiOffQpnShSPTKGJ0Stxq RUVpx2wmvl9pjm28qipNNgYXAcU67Z+76Fz1Kha6hgNd/5lTH0xya4bdorFsSHVampEMKV kYJdiTqs7bdFWkkXav5j1cdkHWLcziOCxpJvrwNW/SKNShaEaU3k3egndWrYpY2XOIMmFr VoJsB6LIpqaCOr7V07/7IXJ0G+TUVR/3SlvI5bSasg5ABAfR9lGTEuCjpIJsqJJUBMVPd5 24fCeOtmpsJTZuxqsZxjMSk/roIe+qkGGAnA5p5ZAQFxc7EUTXENe4bjoHVKUQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638449393; a=rsa-sha256; cv=none; b=VjipvoB6LNbY/VUzb5VWoAKTZzLGi/K+DEpeBMYe0U2uH1iUHGZEe47kxS6M8Pj1V1MumV TiIzTQHG6LMWHxzG1apqONbPixqDY3RbIsKyffQxrOXURH1R4Rz6d5wfIkChRTQoqrLrZO tdB+OBKLJ3OWRD1bE/TLDybmncy1w4OKTqjHhg++XMuOy0LsQOWFkJIsKHKDYMABvbSQoo 7AaSNSdsI/cByq6gLywi5MUArlrU1mKUEPaPyuZZkDdNMejQh8Ujnm9MAlUUqElTE6OnOk yN3VEhfJN0vTi1b7zhT8mAzdYHmxbbTpidnkGQMWPpfgyLFQtjyy8BEVMtkRVg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -0.28 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: B90231D49E X-Spam-Score: -0.28 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8Nnkjwb8GNto Tomi Ollila 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" /> - + 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