Gnus development mailing list
 help / color / mirror / Atom feed
* *Group* mode line
@ 2016-01-01 19:21 Adam Sjøgren
  2016-01-01 19:33 ` Andreas Schwab
  0 siblings, 1 reply; 12+ messages in thread
From: Adam Sjøgren @ 2016-01-01 19:21 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 66 bytes --]

I just happened to glance at the mode line in my *Group* buffer:


[-- Attachment #2: Screenshot of mode line in *Group* buffer --]
[-- Type: image/png, Size: 2094 bytes --]

[-- Attachment #3: Type: text/plain, Size: 328 bytes --]


Isn't there a way to fix this abomination unto man?

(The white background in the tiny Gnus-icon part, if that wasn't clear.)


  Happy new year!

    Adam

-- 
 "I came from a household that showed as much                 Adam Sjøgren
  knowledge or interest in sport as hedgehogs show in    asjo@koldfront.dk
  embroidery."

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: *Group* mode line
  2016-01-01 19:21 *Group* mode line Adam Sjøgren
@ 2016-01-01 19:33 ` Andreas Schwab
  2016-01-01 20:00   ` Adam Sjøgren
  0 siblings, 1 reply; 12+ messages in thread
From: Andreas Schwab @ 2016-01-01 19:33 UTC (permalink / raw)
  To: Adam Sjøgren; +Cc: ding

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

> (The white background in the tiny Gnus-icon part, if that wasn't clear.)

Worksforme.  Perhaps your Emacs is lacking some image options.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: *Group* mode line
  2016-01-01 19:33 ` Andreas Schwab
@ 2016-01-01 20:00   ` Adam Sjøgren
  2016-01-01 21:56     ` Mike Kupfer
  0 siblings, 1 reply; 12+ messages in thread
From: Adam Sjøgren @ 2016-01-01 20:00 UTC (permalink / raw)
  To: ding

Andreas writes:

> asjo@koldfront.dk (Adam Sjøgren) writes:
>
>> (The white background in the tiny Gnus-icon part, if that wasn't clear.)

> Worksforme.  Perhaps your Emacs is lacking some image options.

Interesting. I wouldn't think so, it is the Debian unstable package of
GNU Emacs I am using:

  GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.6) of 2015-12-14 on binet, modified by Debian


  Best regards,

    Adam

-- 
 "After finishing this exercise, you will probably be         Adam Sjøgren
  able to provide many really useful patches for Gnus    asjo@koldfront.dk
  in the future yourself."




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: *Group* mode line
  2016-01-01 20:00   ` Adam Sjøgren
@ 2016-01-01 21:56     ` Mike Kupfer
  2016-01-01 22:16       ` Adam Sjøgren
  2016-01-01 22:21       ` Adam Sjøgren
  0 siblings, 2 replies; 12+ messages in thread
From: Mike Kupfer @ 2016-01-01 21:56 UTC (permalink / raw)
  To: Adam =?utf-8?Q?Sj=C3=B8gren?=; +Cc: ding

Adam Sjøgren wrote:

> Andreas writes:
> 
> > asjo@koldfront.dk (Adam Sjøgren) writes:
> >
> >> (The white background in the tiny Gnus-icon part, if that wasn't clear.)
> 
> > Worksforme.  Perhaps your Emacs is lacking some image options.
> 
> Interesting. I wouldn't think so, it is the Debian unstable package of
> GNU Emacs I am using:
> 
>   GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.6) of
>   2015-12-14 on binet, modified by Debian

Hi Adam, I don't get the white background running on Debian unstable
(packages updated today).

Are you using the Gnus that comes with Emacs?

What window/desktop environment do you use?

Does your Emacs startup code change any faces?

cheers,
mike



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: *Group* mode line
  2016-01-01 21:56     ` Mike Kupfer
@ 2016-01-01 22:16       ` Adam Sjøgren
  2016-01-01 22:21       ` Adam Sjøgren
  1 sibling, 0 replies; 12+ messages in thread
From: Adam Sjøgren @ 2016-01-01 22:16 UTC (permalink / raw)
  To: ding

Mike writes:

> Hi Adam, I don't get the white background running on Debian unstable
> (packages updated today).

Hm, curioser and curioser...

> Are you using the Gnus that comes with Emacs?

No, I am using Gnus from the development repository.

> What window/desktop environment do you use?

I use XMonad as the window manager, without any of the desktop
environments (I use Nemo (fork of Nautilus) for managing files).

> Does your Emacs startup code change any faces?

I have customized a couple of faces (i.e. stored in ~/.emacs.d/init.el
in a call to custom-set-faces); it ends with:

   '(mode-line ((((class color) (min-colors 88)) (:background "grey86" :foreground "black" :box (:line-width -1 :style released-button))))))

But I haven't done anything with faces beyond that.

aybe it's all my own fault?


  :-),

   Adam

-- 
 "Plasmids are circular bits of DNA that bacteria             Adam Sjøgren
  treat like Pokemon - trading with their friends        asjo@koldfront.dk
  collecting all the cool ones."




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: *Group* mode line
  2016-01-01 21:56     ` Mike Kupfer
  2016-01-01 22:16       ` Adam Sjøgren
@ 2016-01-01 22:21       ` Adam Sjøgren
  2016-01-01 22:37         ` Andreas Schwab
  2016-01-01 22:46         ` Mike Kupfer
  1 sibling, 2 replies; 12+ messages in thread
From: Adam Sjøgren @ 2016-01-01 22:21 UTC (permalink / raw)
  To: ding

Mike writes:

> I don't get the white background running on Debian unstable

Could you make a screenshot? Does your look kind of pixelly, like mine,
or is it smoothened?


   Best regards,

     Adam

-- 
 "Never spend more than a year on anything."                  Adam Sjøgren
                                                         asjo@koldfront.dk




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: *Group* mode line
  2016-01-01 22:21       ` Adam Sjøgren
@ 2016-01-01 22:37         ` Andreas Schwab
  2016-01-01 22:41           ` Adam Sjøgren
  2016-01-01 22:46         ` Mike Kupfer
  1 sibling, 1 reply; 12+ messages in thread
From: Andreas Schwab @ 2016-01-01 22:37 UTC (permalink / raw)
  To: Adam Sjøgren; +Cc: ding

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

> Could you make a screenshot? Does your look kind of pixelly, like mine,
> or is it smoothened?

Mine is pixelated, from etc/images/gnus/gnus-pointer.xpm.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: *Group* mode line
  2016-01-01 22:37         ` Andreas Schwab
@ 2016-01-01 22:41           ` Adam Sjøgren
  0 siblings, 0 replies; 12+ messages in thread
From: Adam Sjøgren @ 2016-01-01 22:41 UTC (permalink / raw)
  To: ding

Andreas writes:

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

>> Could you make a screenshot? Does your look kind of pixelly, like mine,
>> or is it smoothened?

> Mine is pixelated, from etc/images/gnus/gnus-pointer.xpm.

And that file clearly has the background with colour "None". Hm.

I wonder if .svg files can be used in the modeline...


  Best regards,

    Adam

-- 
 "Og vi? Vi bliver bare dummere og dummere. Og lige           Adam Sjøgren
  pludselig tror vi at alle der ikke ligner Bengt Burg   asjo@koldfront.dk
  eller en honningkage, det er voldstosser."




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: *Group* mode line
  2016-01-01 22:21       ` Adam Sjøgren
  2016-01-01 22:37         ` Andreas Schwab
@ 2016-01-01 22:46         ` Mike Kupfer
  2016-01-01 23:07           ` Adam Sjøgren
  1 sibling, 1 reply; 12+ messages in thread
From: Mike Kupfer @ 2016-01-01 22:46 UTC (permalink / raw)
  To: Adam Sjøgren; +Cc: ding

[-- Attachment #1: Type: text/plain, Size: 252 bytes --]

Adam Sjøgren wrote:

> Could you make a screenshot? Does your look kind of pixelly, like mine,
> or is it smoothened?

Mine (attached) looks smoother than the image that you posted, but if I
magnify it enough, I do see some pixelation.

mike

[-- Attachment #2: Mike's modeline --]
[-- Type: image/png, Size: 3092 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: *Group* mode line
  2016-01-01 22:46         ` Mike Kupfer
@ 2016-01-01 23:07           ` Adam Sjøgren
  2016-01-02  1:02             ` Adam Sjøgren
  0 siblings, 1 reply; 12+ messages in thread
From: Adam Sjøgren @ 2016-01-01 23:07 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 352 bytes --]

Mike writes:

> Mine (attached) looks smoother than the image that you posted, but if I
> magnify it enough, I do see some pixelation.

Yeah, I think it's the same, it's just the high-dpi scaling stuff that
exaggerates it in my screenshot.

Oh. Hm. Maybe that comes into play here.

Let me try turning it off...

Yes! Now my modeline looks like this:


[-- Attachment #2: gnus-modeline-unscaled.png --]
[-- Type: image/png, Size: 1686 bytes --]

[-- Attachment #3: Type: text/plain, Size: 1580 bytes --]


So the two nice functions Katsumi-san made for me back when I got a
"high-dpi" laptop, are influencing this; they look like this:

  (defadvice create-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)))
          (plist-put spec :width (round (* (car size) magnitude)))
          (plist-put spec :height (round (* (cdr size) magnitude)))
          (plist-put spec :type 'imagemagick)
          (setq ad-return-value image))
      (error nil)))

  (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)))
          (plist-put spec :width (round (* (car size) magnitude)))
          (plist-put spec :height (round (* (cdr size) magnitude)))
          (plist-put spec :type 'imagemagick)
          (setq ad-return-value image))
      (error nil)))

(image-dpi-scame-magnitude is 1.5 on my laptop, for reference.)

So I guess ImageMagick turns the the "None" colour of .xpm's into
white...


  Best regards,

    Adam

-- 
 "Frankly, I'd like to have the issue resolved before         Adam Sjøgren
  I expend any more energy on this."                     asjo@koldfront.dk

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: *Group* mode line
  2016-01-01 23:07           ` Adam Sjøgren
@ 2016-01-02  1:02             ` Adam Sjøgren
  2016-02-06  6:13               ` Lars Ingebrigtsen
  0 siblings, 1 reply; 12+ messages in thread
From: Adam Sjøgren @ 2016-01-02  1:02 UTC (permalink / raw)
  To: ding

I think the problem is that images inserted into the modeline get
transparent background rendered as white if they are of :type svg or
:type imagemagick, while if the :type is xpm the transparent background
is "respected".

I turned off my advice's, and I made a gnus-pointer.svg (to get
anti-aliasing), but if I use that, the background of the image in the
modeline is white, even though if I just load the file for display in
Emacs (say with a black background), the background of the image is
transparent.

I guess I should prepare a minimal example...


  Best regards,

    Adam

-- 
 "the office is quiet now, i am at the desk, preparing        Adam Sjøgren
  to landscape for another day."                         asjo@koldfront.dk




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: *Group* mode line
  2016-01-02  1:02             ` Adam Sjøgren
@ 2016-02-06  6:13               ` Lars Ingebrigtsen
  0 siblings, 0 replies; 12+ messages in thread
From: Lars Ingebrigtsen @ 2016-02-06  6:13 UTC (permalink / raw)
  To: Adam Sjøgren; +Cc: ding

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

> I think the problem is that images inserted into the modeline get
> transparent background rendered as white if they are of :type svg or
> :type imagemagick, while if the :type is xpm the transparent background
> is "respected".

Hm.  I think that sounds like a bug...  perhaps nobody has played with
SVGs in their modelines much?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-02-06  6:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-01 19:21 *Group* mode line Adam Sjøgren
2016-01-01 19:33 ` Andreas Schwab
2016-01-01 20:00   ` Adam Sjøgren
2016-01-01 21:56     ` Mike Kupfer
2016-01-01 22:16       ` Adam Sjøgren
2016-01-01 22:21       ` Adam Sjøgren
2016-01-01 22:37         ` Andreas Schwab
2016-01-01 22:41           ` Adam Sjøgren
2016-01-01 22:46         ` Mike Kupfer
2016-01-01 23:07           ` Adam Sjøgren
2016-01-02  1:02             ` Adam Sjøgren
2016-02-06  6:13               ` Lars Ingebrigtsen

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