On the "View Image" background

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
MrInitialMan

On the "View Image" background

Unread post by MrInitialMan » 2018-03-15, 07:30

Is there a way to simply change it to white? Some GIFs that have no background become very hard to see.

Goodydino
Keeps coming back
Keeps coming back
Posts: 827
Joined: 2017-10-10, 21:20

Re: On the "View Image" background

Unread post by Goodydino » 2018-03-15, 20:05

You can change the background colour for viewing images from about:config with this setting:
browser.display.standalone_images.background_color
Use the hexadecimal notation to specify colour.

Montclair

Re: On the "View Image" background

Unread post by Montclair » 2018-04-19, 14:49

This doesn't work for me. When I view images alone, the background is still the dark gray, despite me changing the setting to #FFFFFF. Anyone have any idea why?

User avatar
LAR Grizzly
Lunatic
Lunatic
Posts: 358
Joined: 2017-08-11, 16:49
Location: Upstate Ohio, USA
Contact:

Re: On the "View Image" background

Unread post by LAR Grizzly » 2018-04-20, 00:08

MrInitialMan wrote:Is there a way to simply change it to white? Some GIFs that have no background become very hard to see.
The code below gives images a light grey background. Substitute #FFFFFF in place of #C0C0C0 for white background.

https://userstyles.org/styles/58710/fir ... background

Code: Select all

@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document regexp("((.*\\.(png|apng|jpg|jpeg|gif|tiff|bmp))|(^data:image\\/.*))(\\?([^#]*))?(#(.*))?") {

html > body {
  background-color: #C0C0C0 !important;
}

html > body > img:only-child {
  box-shadow: 0px 0px 20px black !important;
}

}
Last edited by LAR Grizzly on 2018-04-20, 00:38, edited 1 time in total.
Win7 Pro SP1 64 Bit
Comodo Internet Security
Pale Moon 33.0.2, Epyrus Mail 2.1.2, Firefox 115.9.1esr, Thunderbird 115.9.0, and SeaMonkey 2.53.18.2

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35602
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: On the "View Image" background

Unread post by Moonchild » 2018-04-20, 13:01

Montclair wrote:This doesn't work for me. When I view images alone, the background is still the dark gray, despite me changing the setting to #FFFFFF. Anyone have any idea why?
It works for me, and LAR, you do not need that kind of annoying workaround. What Goodydino said is exactly the correct solution.

If you change this value in about:config, you will have to hit "refresh" (F5) on the displayed image to change the background color to what you've set.
Last edited by Moonchild on 2018-04-20, 13:02, edited 1 time in total.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Montclair

Re: On the "View Image" background

Unread post by Montclair » 2018-04-20, 13:09

Yes, I discovered that it's being overridden by the theme I'm using (PMChrome). When the theme is disabled, the setting works. I've opened a bug report on Github and reported the issue via email to the theme developer.

bravokilo

Re: On the "View Image" background

Unread post by bravokilo » 2018-08-20, 10:07

Until 28.0.0, this setting:
browser.display.standalone_images.background_color;#ffffff
worked as expected. This page is one of my daily visits: http://www.usairnet.com/weather/images/ ... rature.png
Now I only get the default background color.
I don't use any themes or skins, and no other system changes were made.
Last edited by bravokilo on 2018-08-20, 10:10, edited 1 time in total.

New Tobin Paradigm

Re: On the "View Image" background

Unread post by New Tobin Paradigm » 2018-08-20, 10:08

It is a minor regression due to platform changes. We will get around to forward porting it from Tycho.
Last edited by New Tobin Paradigm on 2018-08-20, 10:09, edited 1 time in total.

bravokilo

Re: On the "View Image" background

Unread post by bravokilo » 2018-08-20, 10:12

Beyond a doubt, this is the most useful and helpful Help section ever. God Bless you all.

New Tobin Paradigm

Re: On the "View Image" background

Unread post by New Tobin Paradigm » 2018-08-20, 10:15

Issue #717 (UXP)

EDIT: RESOLVED FIXED by Moonchild. It will be in the next release.
Last edited by New Tobin Paradigm on 2018-08-20, 11:42, edited 1 time in total.

Locked