From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87920 Path: news.gmane.org!.POSTED!not-for-mail From: asjo@koldfront.dk (Adam =?utf-8?Q?Sj=C3=B8gren?=) 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 14:31:23 +0200 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87d0znt65g.fsf@tullinup.koldfront.dk> 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1522326617 14567 195.159.176.226 (29 Mar 2018 12:30:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 29 Mar 2018 12:30:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+m36134@lists.math.uh.edu Thu Mar 29 14:30:13 2018 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from mxfilter-048035.atla03.us.yomura.com ([107.189.48.35]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1Wh3-0003gZ-28 for ding-account@gmane.org; Thu, 29 Mar 2018 14:30:13 +0200 X-Yomura-MXScrub: 1.0 Original-Received: from lists1.math.uh.edu (unknown [129.7.128.208]) by mxfilter-048035.atla03.us.yomura.com (Halon) with ESMTPS id 2c377ba5-334d-11e8-a660-b499baabecb2; Thu, 29 Mar 2018 12:31:58 +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 1f1WiQ-00075F-La; Thu, 29 Mar 2018 07:31:38 -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 1f1WiO-00074i-Di for ding@lists.math.uh.edu; Thu, 29 Mar 2018 07:31:36 -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 1f1WiN-0006MT-Ee for ding@lists.math.uh.edu; Thu, 29 Mar 2018 07:31:36 -0500 Original-Received: from [195.159.176.226] (helo=blaine.gmane.org) by quimby.gnus.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1f1WiM-0003pG-79 for ding@gnus.org; Thu, 29 Mar 2018 14:31:34 +0200 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1f1WgH-0002qY-HW for ding@gnus.org; Thu, 29 Mar 2018 14:29:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 51 Original-X-Complaints-To: usenet@blaine.gmane.org OpenPGP: id=476630590A231909B0A0961A49D0746121BDE416; url=https://asjo.koldfront.dk/gpg.asc Mail-Follow-Up-To: never X-Now-Playing: Erdos, Relatively Prime: Stories from the Mathematical Domain (ACMEScience) X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97,Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87920 Archived-At: Robert writes: > Would you have a small self-contained example of images appearing too > big in Emacs? No, it works pretty well these days. The advice I am using on find/create-image¹ is fixing the opposite problem: images being too small on HiDPI screens. 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ʼve 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). Best regards, Adam ¹ This is the current incarnation I use to get images scaled up on HiDPI 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= (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. -- "Om man köper ett gäng bananer och tar dom med hem..." Adam Sjøgren asjo@koldfront.dk