Code Monkey home page Code Monkey logo

Comments (15)

horst3180 avatar horst3180 commented on June 23, 2024

This is a common bug in webkitgtk (atleast I think it's webkitgtk). See here horst3180/vertex-theme#82 (comment)

The buttons use the color defined under .button:active, when in reality the button is not active :/

from arc-theme.

horst3180 avatar horst3180 commented on June 23, 2024

I'll have to close this, since it's not a bug in the theme. Maybe send a bug report to the geary devs.

from arc-theme.

timorei avatar timorei commented on June 23, 2024

Reported to geary development team.

https://bugzilla.gnome.org/show_bug.cgi?id=752312

from arc-theme.

timorei avatar timorei commented on June 23, 2024

Robert Schroll from yorba provided this
https://bugzilla.gnome.org/attachment.cgi?id=307367
Python script (downloadable from the bugtracker).

This shows basically two things: It's not a geary problem, but a webkit one. And as a matter of fact it does concern the theme.

Another place I've seen this problem is gnomes-bugtracker within epiphany-browser: the buttons show the exact same "white text".

bugtracker

This bug might need to be reopened?

from arc-theme.

horst3180 avatar horst3180 commented on June 23, 2024

The bug is only visible with themes which use a different text color for pressed buttons than for normal buttons.
For some reason webkit uses the color of pressed buttons to render normal buttons.
bildschirmfoto von 2015-07-15 08-22-41

from arc-theme.

timorei avatar timorei commented on June 23, 2024

So. Is there a selector that lets you build a workaround for the webkit buttons until this is getting fixed in webkitgtk? It sadly brakes quite a lot of pages like webshops and I doubt that webkitgtk fixes are quick to get done.

from arc-theme.

horst3180 avatar horst3180 commented on June 23, 2024

There are no selectors to use unfortunately. The buttons use as color whatever is specified by .button:active.
I may have found a workaround, though. it should be possible to set the pushed button color like this:

.button:active {
    color: black;        /*Makes Webkit buttons readable*/
}

.button:active:hover,    /*Buttons that get pressed with the mouse*/
.button:checked {        /*Buttons that are toggled on*/
    color: white;
}

That would make the pressed webkit buttons and focused buttons, activated by the enter key, a little harder to read, since they have dark text on a blue background, but I think it's more usable than before.

from arc-theme.

horst3180 avatar horst3180 commented on June 23, 2024

This is what it looks like:

Normal
bildschirmfoto von 2015-07-15 11-24-07

Pressed
bildschirmfoto von 2015-07-15 11-24-13

from arc-theme.

timorei avatar timorei commented on June 23, 2024

Well, seeing text is an improvement, I agree. But isn't there any selector to get webkit-rendered buttons only? Stuff that can seriously be placed in a workarouds.css or something... because that's what this is, no?

https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Webkit_Extensions

Something that works within a gnome theme?

from arc-theme.

horst3180 avatar horst3180 commented on June 23, 2024

It looks like GTK only sees the WebKitWebView, the rest happens in webkit. Those webkit buttons are no actual GtkButtons I think. They just emulate the GTK look (badly).
bildschirmfoto von 2015-07-15 11-35-57

from arc-theme.

timorei avatar timorei commented on June 23, 2024

That is most certainly true. I guess they are just plain old html buttons.

Now, the question is - it there a WebKitWebView > .button:active selector, that works within the webview but not outside of it - keeping potential uglyness away from the 'non-workaround-theme'?

from arc-theme.

horst3180 avatar horst3180 commented on June 23, 2024

I already tried that, it doesn't work. It doesn't work if I set the color for .button:active for the entire application, or for WebKitWebView * either.
The workaround I proposed is really my last resort.

from arc-theme.

timorei avatar timorei commented on June 23, 2024

Hm, ok. I'm currently browsing the webkitgtk bugtracker, to see if there is anything about the false :active flag.

from arc-theme.

timorei avatar timorei commented on June 23, 2024

Just a little report - I've been running your workaround for the last couple of hours. I haven't noticed any negative sideeffect beyond the black-text-when-clicking-the-button.

I have, however noticed a much improved workiness in epiphany-browser and geary.

It really is not a bug in the theme but in the way libwebkitgkt handles buttons and your workaround will improve it for the time being. /closed? (and similar ones?)

from arc-theme.

horst3180 avatar horst3180 commented on June 23, 2024

I agree. It's good enough until there's a proper fix in webkit.

from arc-theme.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.