Gnus development mailing list
 help / color / mirror / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: asjo@koldfront.dk (Adam Sjøgren)
Cc: ding@gnus.org
Subject: Re: The Gnus logo in the modeline is displayed with a non-transparent background
Date: Thu, 29 Mar 2018 16:04:56 +0200	[thread overview]
Message-ID: <871sg3dlkn.fsf@gmail.com> (raw)
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")

asjo@koldfront.dk (Adam Sjøgren) writes:

> The advice I am using on find/create-image¹ 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ʼ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).

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.

> ¹ 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.

150?! That seems very high. Iʼd expect values like 1.5 or 2.

Perhaps image-size is not scaling correctly, Iʼll see if I can find anything.

Robert



  reply	other threads:[~2018-03-29 14:04 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-25 21:31 Adam Sjøgren
2018-02-25 22:39 ` Andreas Schwab
2018-02-25 23:06   ` Adam Sjøgren
2018-02-26  0:02     ` Eric Abrahamsen
2018-02-26 19:59       ` Adam Sjøgren
2018-02-26 20:18         ` Eric Abrahamsen
2018-03-24 22:38           ` Adam Sjøgren
2018-03-29  8:12             ` Eric Abrahamsen
2018-03-29 11:49               ` Adam Sjøgren
2018-03-29 12:09                 ` Robert Pluim
2018-03-29 12:31                   ` Adam Sjøgren
2018-03-29 14:04                     ` Robert Pluim [this message]
2018-03-29 14:17                       ` Adam Sjøgren
2018-03-29 16:19                         ` Robert Pluim
2018-03-29 16:43                           ` Adam Sjøgren
2018-03-30  7:39                             ` Robert Pluim
2018-02-26 19:22     ` Andreas Schwab
2018-02-26 19:31       ` Adam Sjøgren
2018-02-25 23:22   ` Mike Kupfer

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871sg3dlkn.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=asjo@koldfront.dk \
    --cc=ding@gnus.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.
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 NNTP newsgroup(s).