Using dark GTK theme causes input boxes to be black

Support and discussions for the x86/x64 Linux version of Pale Moon.

Moderators: trava90, satrow

User avatar
EbonJaeger
Moonbather
Moonbather
Posts: 71
Joined: 2017-03-21, 16:27
Location: New York, USA

Using dark GTK theme causes input boxes to be black

Unread post by EbonJaeger » 2019-01-22, 16:11

There appears to be a long-standing issue with Firefox that causes input boxes on websites to be black with black text, making anything you enter into it unreadable. It seems Pale Moon has inherited this. Is there any chance this could be addressed in Pale Moon, besides the non-answer of "just don't use a dark theme"?

An easy site to see the problem is http://www.tenor.com, which has a large search input box at the top of the page:
Image

This is how it appears in Vivaldi:
Image

fillerup
Lunatic
Lunatic
Posts: 493
Joined: 2014-05-19, 19:14
Location: Finland

Re: Using dark GTK theme causes input boxes to be black

Unread post by fillerup » 2019-01-22, 18:34

i think it happens when you launch it through the terminal, but not when you launch the executable directly

User avatar
EbonJaeger
Moonbather
Moonbather
Posts: 71
Joined: 2017-03-21, 16:27
Location: New York, USA

Re: Using dark GTK theme causes input boxes to be black

Unread post by EbonJaeger » 2019-01-22, 19:34

Nope, not launching from terminal.

User avatar
slp_se
Moongazer
Moongazer
Posts: 11
Joined: 2016-04-11, 14:50
Location: Sweden

Re: Using dark GTK theme causes input boxes to be black

Unread post by slp_se » 2019-01-22, 20:05

I work around that by using a global userstyle called White Text on White Field Fix, installed through Stylem.

anarchotaoist
Moongazer
Moongazer
Posts: 14
Joined: 2018-02-19, 10:40

Re: Using dark GTK theme causes input boxes to be black

Unread post by anarchotaoist » 2019-01-26, 06:15

slp_se wrote:I work around that by using a global userstyle called White Text on White Field Fix, installed through Stylem.
How do you install that? The link took me to a Chrome download! ??

User avatar
slp_se
Moongazer
Moongazer
Posts: 11
Joined: 2016-04-11, 14:50
Location: Sweden

Re: Using dark GTK theme causes input boxes to be black

Unread post by slp_se » 2019-01-26, 14:56

anarchotaoist wrote:
slp_se wrote:I work around that by using a global userstyle called White Text on White Field Fix, installed through Stylem.
How do you install that? The link took me to a Chrome download! ??
I probably imported the CSS code manually into a blank script. It's very small.

User avatar
Raava
Moonbather
Moonbather
Posts: 56
Joined: 2014-06-22, 22:23
Location: Europe

Re: Using dark GTK theme causes input boxes to be black

Unread post by Raava » 2019-01-30, 23:58

I use a dark theme in my Linux GUI, and also use a dark theme for Palemoon, but in the beginning I just forced every site to have my colours, black background, light green text and such, but many objects like [quote] or

Code: Select all

 or [bold] buttons on forums have been only black on black, and I had to guess where these buttons have been.
The solution now is using the AddOn [i]Advanced Night Mode[/i]. It has the downside that sometimes newly opened pages are displayed for a short moment in their bright standard colours prior of [i]Advanced Night Mode[/i] taking over and changing the colours. It is neat, as it analyses the pages and not just inverts all colours, dark websites are still dark, while bright or white websites all get nice and dark.
yours truly, Raava (aka Rava)

User avatar
EbonJaeger
Moonbather
Moonbather
Posts: 71
Joined: 2017-03-21, 16:27
Location: New York, USA

Re: Using dark GTK theme causes input boxes to be black

Unread post by EbonJaeger » 2019-01-31, 05:21

What I want to know is how does it make any sense for the desktop theme to override website themes? Because to me that makes no sense whatsoever. I really don't think that styles from outside the browser should have any effect on the styling of actual websites.

User avatar
New Tobin Paradigm
Knows the dark side
Knows the dark side
Posts: 5264
Joined: 2012-10-09, 19:37
Location: Sector 001

Re: Using dark GTK theme causes input boxes to be black

Unread post by New Tobin Paradigm » 2019-01-31, 05:31

WHat it really depends on is if the Website in question has actually styled the controls.. Cause if not.. Then they have to be rendered with some sort of style and in this case it is the system style.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 23450
Joined: 2011-08-28, 17:27
Location: 58°2'16"N 14°58'31"E
Contact:

Re: Using dark GTK theme causes input boxes to be black

Unread post by Moonchild » 2019-02-01, 18:16

EbonJaeger wrote:What I want to know is how does it make any sense for the desktop theme to override website themes?
It doesn't make any sense but that isn't what's happening -- the controls you have issues with are unstyled in the website. Unstyled controls will use whatever is the default in the browser, and whatever the default is in the browser depends on whether the controls are actually system-styled or not.

Usually when this happens, the website controls are styled but not complete, creating a mismatch between styled and unstyled parts of the element, where the unstyled parts will adopt the system theme, and the styled parts are not -- so it does exactly what you expected: the browser's styles override the system styles.

A potential solution on the browser side would be to always force a default style, but that would mean the controls will no longer respond to system themes, and people will not like that either.
Improving Mozilla code: You know you're on the right track with code changes when you spend the majority of your time deleting code.

"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne

User avatar
Raava
Moonbather
Moonbather
Posts: 56
Joined: 2014-06-22, 22:23
Location: Europe

Re: Using dark GTK theme causes input boxes to be black

Unread post by Raava » 2019-02-02, 07:07

Moonchild wrote:Usually when this happens, the website controls are styled but not complete, creating a mismatch between styled and unstyled parts of the element, where the unstyled parts will adopt the system theme, and the styled parts are not -- so it does exactly what you expected: the browser's styles override the system styles.

A potential solution on the browser side would be to always force a default style, but that would mean the controls will no longer respond to system themes, and people will not like that either.
Isn't part of the issue that some website coders only define some colours, assuming a user would never dare to use custom colours?
There is the one website coders rule "define one colour, define all colours"

Like with GMX.net, they are notoriously bad at that. When I used a forced colour setting that overrides the website colours (prior using Advanced Night Mode), I often had issues with GMX since they e.g. define that the text of a email should be very dark grey, but they never define the rest, e.g. the background. So I got very dark grey on black background. :problem:

Or with emails sent by GMX support. In interlink I also defined the colours, also having very light colours text, link, visited link. And black background. Now, the GMX email sure only defines the html text as being black (that would be the default setting anyway if nothing would have been changed :crazy: ), and define nothing more. So I get their Email as being black on black. :crazy:
Which reflects the help they are willing to give to free account users anyway: readability none, help provided: none. :lol:

"define one colour, define all colours", I already told them when I was a paying customer for a year about the issue, but the ones on the telephone did not understand or not care, or both. All they said was "users are not supposed to change the default colours in their browser, when that causes trouble reset to factory standards", say what? :crazy:
No, its the inability of the GMX web and email coders that causes trouble, not the user changing colours in his or her own browser to feed the individual need. Seriously.
yours truly, Raava (aka Rava)

Post Reply