From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +HCCGY5gwmE8NAAAgWs5BA (envelope-from ) for ; Wed, 22 Dec 2021 00:17:34 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 2J1HFY5gwmEkXwAAB5/wlQ (envelope-from ) for ; Tue, 21 Dec 2021 23:17:34 +0000 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (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 5E9B9A276 for ; Wed, 22 Dec 2021 00:17:32 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 6C50F5F70D; Tue, 21 Dec 2021 23:17:27 +0000 (UTC) X-Greylist: delayed 399 seconds by postgrey-1.36 at yantan; Tue, 21 Dec 2021 23:17:24 UTC Received: from meesny.iki.fi (meesny.iki.fi [IPv6:2001:67c:2b0:1c1::201]) by mail.notmuchmail.org (Postfix) with ESMTPS id 6091C5F5EE for ; Tue, 21 Dec 2021 23:17:24 +0000 (UTC) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: too) by meesny.iki.fi (Postfix) with ESMTPSA id 668C0202CB; Wed, 22 Dec 2021 01:10:43 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1640128243; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=xBs+aC7Gl/6V9VTTvO6cN5GEhQLvgqUcFHO0upcutfk=; b=WIiJ6Pgw2XpDUK86N0GrxKVDHGTfhDo45s6BrgkIkJ8WPNeElYBEOoZIwETF/rjrQF6qbd 9wMHUfvU7TirgV1l25fAYbKh2WsdUHCpqgceu2UcReb9pxnkdVbSgsnxrnR1POmjgGvhnx LMDPTCvXCjX2RumqJr2l81qdgJyhq0k= From: Tomi Ollila To: notmuch@notmuchmail.org Subject: [PATCH v3] emacs: add notmuch-logo.svg and use it in emacs mua on graphic displays Date: Wed, 22 Dec 2021 01:10:39 +0200 Message-Id: <20211221231039.22785-1-tomi.ollila@iki.fi> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi ARC-Seal: i=1; s=meesny; d=iki.fi; t=1640128243; a=rsa-sha256; cv=none; b=FbsngxuRsYMJEETQRO7kNxGLQFNorZwgwXzSNKorGgJ6VU1IG3Usk1g8DWDfGyCIvZOrII lmnxgdDCRgBr+LFLqarKWvP08zWBK34u5APqHsoHZYG5gs1wG/lKjhoMYDGHWpHLgniKCk tB5P5KDoFHdPs5yGZhsPiLFX/IeASEY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1640128243; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=xBs+aC7Gl/6V9VTTvO6cN5GEhQLvgqUcFHO0upcutfk=; b=uc/Ff58UJMvxV0ci4Nw/MuwufcOq9Jgvt/GP8moqZMRwDd5AU1VmFtvZpUGKtw4P8+f0pk X31nAALL/crezB6tcW7DaRXEiMSPeRGp1wHDcTzYN2gKK/r9YcCUwzu21Ey2P1mXkuL3GY NfIh3C9aTSnpO6uP6B0FC1N010Rd73U= Message-ID-Hash: GN4T5YV67BOGPY3SAIYMATVMHYRMWY5J X-Message-ID-Hash: GN4T5YV67BOGPY3SAIYMATVMHYRMWY5J X-MailFrom: tomi.ollila@iki.fi 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: DE ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640128653; 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:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=L09+cyhJAOM8wsoopR/Cnd2bBja5+bJ+DjA7VGkM2+s=; b=HTqO5rVqAROuQOJEXSkONX9pbiEzMOMp25bNdRxleNNZs2b49hQpZdv/Ln5k5mavsRBJ+C yPqyIroWKA87nUALPrUsAiNaTmS1DfLzs59UNBjkyofIlsKxpGPQjfEhxHyr9Hs04StXI0 CkbKS8oDbYclifTpD+oFrUK1Wn/8QjL+wXffZQ3ujwXPRu7HKOs8cYqmj3gS8UDwawzMZT 6Lr4lFqnIQ+PqVHJUePBLHfzBLPYGytvyJkL3zwkx3aLyGJmAxKxYHfU38pI5yX+iF3LPr ANLsxaifxQ49BYHxNjEkyqlvf69zWvhRB52dNA3YtFfMxKlxBEhAOj/TwXWcLA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1640128653; a=rsa-sha256; cv=fail; b=T5Ytc8nb04FCBQpIMZIbyaYc21VymGo3y3DLKxzNd+1dOSLly0A1wTayCQoOKjdOr92798 Jv5mvUfuUwBb/PcMoPKKNh4fOwD4RcoJMs3zFxLvS/oZGsNl4RI78x5aPXVMpkU/T248Mk an2wWk7EPWwfnJiat6yuQLoJiz04TMike5L7/E9N2AmvanlgIsqw9qFFIkofsiogmqKXJr tFdQEMp681ul5Dk+nqh6U0vOF4XP2EXOkvzOcGOyoLPz7kSDQ7sFB4lPcfd0yJELSwAIMt 07eujF1U9ML4BfM2F31hsCxWYgy0BxsWJbI75m+FOL0n3kPQ0d/EJASQ/waDhw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=meesny header.b=WIiJ6Pgw; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=fail (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org does not designate 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 0.48 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=meesny header.b=WIiJ6Pgw; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=fail (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org does not designate 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 5E9B9A276 X-Spam-Score: 0.48 X-Migadu-Scanner: scn0.migadu.com X-TUID: Muuvf+zJufTv 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, 100x100 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. --- Version 3 of id:m2o85gtd3y.fsf@guru.guru-group.fi diffdiff: 100x100, viewbox, stroke-width=2, some adjustments (viewbow was to support scaling -- unfortunately emacs 26 (librsvg) svg rendering did not scale -- it clipped (imagemagick would have scaled -- but white backround) ;-Subject: [PATCH v2] emacs: add notmuch-logo.svg and use it in emacs ;+Subject: [PATCH v3] emacs: add notmuch-logo.svg and use it in emacs ; mua on graphic displays ;@@ -12,3 +12,3 @@ ; ;-The rendered image size, 100x110 pixels, fits reasonably well with ;+The rendered image size, 100x100 pixels, fits reasonably well with ; text shown in various font sizes. ; ;@@ -87,4 +73,4 @@ ; + ;-+ ;++ ; + ;@@ -95,7 +81,7 @@ ; + ;-+ ;++ ; + ;@@ -106,7 +92,7 @@ ; + ;-+ ;-+ ;++ ;++ ; + ;-+ ;-+ ;++ ;++ ; + debian/elpa-notmuch.elpa | 2 +- emacs/Makefile.local | 2 +- emacs/notmuch-hello.el | 2 +- emacs/notmuch-logo.svg | 27 +++++++++++++++++++++++++++ 4 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 emacs/notmuch-logo.svg diff --git a/debian/elpa-notmuch.elpa b/debian/elpa-notmuch.elpa index 4712b73f..7b3ce0fa 100644 --- a/debian/elpa-notmuch.elpa +++ b/debian/elpa-notmuch.elpa @@ -1,3 +1,3 @@ debian/tmp/usr/share/emacs/site-lisp/*.el -debian/tmp/usr/share/emacs/site-lisp/notmuch-logo.png +debian/tmp/usr/share/emacs/site-lisp/notmuch-logo.svg emacs/notmuch-pkg.el diff --git a/emacs/Makefile.local b/emacs/Makefile.local index d1b320c3..0f1f0eb2 100644 --- a/emacs/Makefile.local +++ b/emacs/Makefile.local @@ -42,7 +42,7 @@ emacs_mua := $(dir)/notmuch-emacs-mua emacs_mua_desktop := $(dir)/notmuch-emacs-mua.desktop emacs_images := \ - $(srcdir)/$(dir)/notmuch-logo.png + $(srcdir)/$(dir)/notmuch-logo.svg emacs_bytecode = $(emacs_sources:.el=.elc) emacs_docstrings = $(emacs_sources:.el=.rsti) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index acd48c9b..fc007c4c 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -198,7 +198,7 @@ (defcustom notmuch-saved-search-sort-function nil (defvar notmuch-hello-indent 4 "How much to indent non-headers.") -(defimage notmuch-hello-logo ((:type png :file "notmuch-logo.png"))) +(defimage notmuch-hello-logo ((:type svg :file "notmuch-logo.svg"))) (defcustom notmuch-show-logo t "Should the notmuch logo be shown?" diff --git a/emacs/notmuch-logo.svg b/emacs/notmuch-logo.svg new file mode 100644 index 00000000..2c65a73b --- /dev/null +++ b/emacs/notmuch-logo.svg @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + -- 2.25.1