From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87921 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.gnus.general Subject: Re: The Gnus logo in the modeline is displayed with a non-transparent background Date: Thu, 29 Mar 2018 16:04:56 +0200 Message-ID: <871sg3dlkn.fsf@gmail.com> References: <87h8q4wybs.fsf@tullinup.koldfront.dk> <87371o8zj8.fsf@linux-m68k.org> <87woz07jps.fsf@tullinup.koldfront.dk> <87tvu4sjmz.fsf@ericabrahamsen.net> <87k1uzmsib.fsf@tullinup.koldfront.dk> <87lgffqzc1.fsf@ericabrahamsen.net> <87efk9qeul.fsf@tullinup.koldfront.dk> <874lkzuwpx.fsf@ericabrahamsen.net> <87y3ib6qzt.fsf@tullinup.koldfront.dk> <87fu4j3wyr.fsf@gmail.com> <87d0znt65g.fsf@tullinup.koldfront.dk> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1522332245 14613 195.159.176.226 (29 Mar 2018 14:04:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 29 Mar 2018 14:04:05 +0000 (UTC) Cc: ding@gnus.org To: asjo@koldfront.dk (Adam =?utf-8?Q?Sj=C3=B8gren?=) Original-X-From: ding-owner+m36135@lists.math.uh.edu Thu Mar 29 16:04:01 2018 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from mxfilter-048034.atla03.us.yomura.com ([107.189.48.34]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1Y9p-0003eS-6K for ding-account@gmane.org; Thu, 29 Mar 2018 16:04:01 +0200 X-Yomura-MXScrub: 1.0 Original-Received: from lists1.math.uh.edu (unknown [129.7.128.208]) by mxfilter-048034.atla03.us.yomura.com (Halon) with ESMTPS id 4a0e4b40-335a-11e8-950a-b499baa2b07a; Thu, 29 Mar 2018 14:05:52 +0000 (UTC) Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.90_1) (envelope-from ) id 1f1YB1-0007od-DI; Thu, 29 Mar 2018 09:05:15 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1f1YAx-0007nt-J9 for ding@lists.math.uh.edu; Thu, 29 Mar 2018 09:05:11 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.90_1) (envelope-from ) id 1f1YAs-0006uq-CH for ding@lists.math.uh.edu; Thu, 29 Mar 2018 09:05:11 -0500 Original-Received: from mail-wm0-f47.google.com ([74.125.82.47]) by quimby.gnus.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1f1YAq-00050Y-Vq for ding@gnus.org; Thu, 29 Mar 2018 16:05:05 +0200 Original-Received: by mail-wm0-f47.google.com with SMTP id l9so11066235wmh.2 for ; Thu, 29 Mar 2018 07:05:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=lBmaYUE8IFzqDncaXOnku9bqakaU1Uo6BG/9Zr2s4bc=; b=CCPlosGP0d9VY2GM4/RGKtXsmHRpGYp7gT6a6Q3++mOk/49hnsSWGoGkJ36D1yGlF+ n8+eRNh0dHvivHZ2SdSeMDIXMXfxlQqqI9EFVVlUgI7XLt/y0Dc93Sn5U4HsOYJe5asM qh6KDMOe6itTE0EFFupR21F0CMODjmzkc5ish8OgPFtqDhrZWjlyqZpXSvsBf55DzrFW fKv6JCv8If2HTku5L2g8SQEBdegozy0y3uNox8GwhjbxprJfvKzrFX5F3eXkmSZsL9YI VeQPrDq49D43H8UlTJzsgg4oX97eDbIoD18WnF5S3veTpsvPQtsOos865U/Bav5hl6Zf XIgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=lBmaYUE8IFzqDncaXOnku9bqakaU1Uo6BG/9Zr2s4bc=; b=qGPlA3q6GAF72JraPFRjUZFm6AFvcZ/rz9IGEWps6PZ3RvfS1LbN5HNHepLk5HyA/f qxAByT8zHJR/dAXcETMLDCrrmYUZAvfikuLUZ2VoqFp/0YJlTs8/b/F49SDLeKXIriAj OiCZcgLTQSyE3uT6FxkDxtFFXLIRw+qAD77fH+iouAhFUNK9OYcLrZbggdCfqdMMZzEg wrbbJglYz+CkvUVw25mN+yY4l5HeZXWgosMC+sZLyUp6hJ8N8Itb3W92M59rZs1LhX1G Nkbdu0lf9JxxpU4dM0tnfAMvWSGNlbFPqRNyCsuCTYXyow03YXgGnmH6xmUVhiYdyUWZ 4x4w== X-Gm-Message-State: AElRT7FkMNjNNd/B2Q/wU3SbWvMov8ggt6ytAojy7yZTwoHglc44hisB JJ/y0vaxYE1nrG1eellO+EwBmpO5 X-Google-Smtp-Source: AIpwx48zsj5omUl7ZYmJXXRaeKErTo4VrBrQ8ay5nLIpXRjBV4XJyeNX180Ib9MQXvn0gdojMOYcpQ== X-Received: by 10.28.174.80 with SMTP id x77mr6328053wme.130.1522332297997; Thu, 29 Mar 2018 07:04:57 -0700 (PDT) Original-Received: from rpluim ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id r82sm2347270wme.31.2018.03.29.07.04.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 29 Mar 2018 07:04:57 -0700 (PDT) Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <87d0znt65g.fsf@tullinup.koldfront.dk> ("Adam \=\?utf-8\?Q\?Sj\?\= \=\?utf-8\?Q\?\=C3\=B8gren\=22's\?\= message of "Thu, 29 Mar 2018 14:31:23 +0200") X-Spam-Score: -2.0 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87921 Archived-At: asjo@koldfront.dk (Adam Sj=C3=B8gren) writes: > The advice I am using on find/create-image=C2=B9 is fixing the opposite > problem: images being too small on HiDPI screens. Too small and too big are symptoms of the same problem: not applying the scaling factor correctly :-) > The only problem with it was the tiny Gnus-logo in the modeline, which > has its transparent background turned white, when the :type is changed > from 'xpm to 'imagemagick (by the advice). > >> I=CA=BCve fixed a number of scaling issues in Emacs, but more always seem >> to pop up (Which version of Emacs is this, BTW?) > > Cool, thanks! What kind of issues should I keep an eye out for? (I'm > currently running master at a140513acb). That commit has all the current fixes. Frame positioning, menu positioning and font scaling should all be ok, except there are known issues with the interaction between menus and scaling. > =C2=B9 This is the current incarnation I use to get images scaled up on H= iDPI > displays: > > (defadvice find-image (after scale-image-size activate) > "Scale the image size." > (condition-case nil > (let* ((magnitude (frame-parameter nil 'image-dpi-scale-magnitude= )) > (image (copy-sequence ad-return-value)) > (size (image-size image t)) > (spec (cdr image)) > (image-width (or (plist-get spec :width) (car size))) > (image-height (or (plist-get spec :height) (cdr size)))) > (plist-put spec :width (round (* image-width magnitude))) > (plist-put spec :height (round (* image-height magnitude))) > (when (not (string=3D (plist-get spec :type) "xpm")) ; skip xpm= files, such as emacs/etc/images/gnus/gnus-pointer.xpm > (plist-put spec :type 'imagemagick)) > (setq ad-return-value image)) > (error nil))) > > where image-dpi-scale-magnitude is set to 150 on HiDPI displays and 100 > on non-HiDPI. 150?! That seems very high. I=CA=BCd expect values like 1.5 or 2. Perhaps image-size is not scaling correctly, I=CA=BCll see if I can find an= ything. Robert