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: Tue, 21 Mar 2017, 16:27
Location: New York, USA

Using dark GTK theme causes input boxes to be black

Unread postby EbonJaeger » Tue, 22 Jan 2019, 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: 481
Joined: Mon, 19 May 2014, 19:14
Location: Finland

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

Unread postby fillerup » Tue, 22 Jan 2019, 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: Tue, 21 Mar 2017, 16:27
Location: New York, USA

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

Unread postby EbonJaeger » Tue, 22 Jan 2019, 19:34

Nope, not launching from terminal.

User avatar
slp_se
Moongazer
Moongazer
Posts: 9
Joined: Mon, 11 Apr 2016, 14:50
Location: Sweden

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

Unread postby slp_se » Tue, 22 Jan 2019, 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: 13
Joined: Mon, 19 Feb 2018, 10:40

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

Unread postby anarchotaoist » Sat, 26 Jan 2019, 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: 9
Joined: Mon, 11 Apr 2016, 14:50
Location: Sweden

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

Unread postby slp_se » Sat, 26 Jan 2019, 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: Sun, 22 Jun 2014, 22:23
Location: Europe

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

Unread postby Raava » Wed, 30 Jan 2019, 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] 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 Advanced Night Mode. It has the downside that sometimes newly opened pages are displayed for a short moment in their bright standard colours prior of Advanced Night Mode 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: Tue, 21 Mar 2017, 16:27
Location: New York, USA

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

Unread postby EbonJaeger » Thu, 31 Jan 2019, 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: 4916
Joined: Tue, 09 Oct 2012, 19:37

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

Unread postby New Tobin Paradigm » Thu, 31 Jan 2019, 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.
New Tobin Paradigm

Help I'm steppin' into the Twilight Zone / Place is a madhouse, feels like being cloned
My beacon's been moved under moon and star / Where am I to go, now that I've gone too far

http://binaryoutcast.com/ | http://thereisonlyxul.org/

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

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

Unread postby Moonchild » Fri, 01 Feb 2019, 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: Sun, 22 Jun 2014, 22:23
Location: Europe

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

Unread postby Raava » Sat, 02 Feb 2019, 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)


Return to “Pale Moon for Linux”

Who is online

Users browsing this forum: No registered users and 6 guests