New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Black rectangles around all UI elements #109
Comments
You may provide a sample screen capture and some info about the window manager, lua and libwebkitgtk versions you are using. Of course, if you find a solution the post you leave here describing the way will be appreciated. |
Hi, I'm running a plain lubuntu install, with the LXDE desktop environment and OpenBox as a window manager. A screen capture showing the can be found here. As far as versions when building, I have lua 5.1. Here's what dpkg says about libwebkitgtk:
Thanks! Paul |
Lxde, AFAIK, utilizes GTK2+, correct? I'd suggest you to play around GTK2+ themes with |
Playing with themes in lxappearance changes the widgets and the color of the text field, but the black boxes remain. Is there anything in themes.lua that could cause this? |
Gonna lurk more on theme.lua and reply back. |
Well, try the transparency hint described in FAQ at Wiki. |
So I added
to rc.lua, but no change. |
Well… Can you try different WMs? On Unity or Awesome I've never had a trouble. Using Lua 5.1, WebKitGTK 1.8 and 1.6, appropriately. |
On one of my machines UI look glitches when its GPU hangs (or something like that happens with the old crappy hardware). As for your trouble I even got no adequate idea, you know. |
This issue was discussed here on Arch Linux forums: https://bbs.archlinux.org/viewtopic.php?pid=1112352#p1112352, but it seems it wasn't fixed completely. At least something you can start with. |
https://bbs.archlinux.org/viewtopic.php?pid=1113953#p1113953:
— I've never thought this was a problem… I see this every day for nearly a year across several versions of both core luakit and webkit itself. Each time the navigation request does is not getting canceled it starts from 10% value; otherwise it freezes at 0%. |
This appears to be a WebKit issue. It looks like the guys from Midori fixed it here: http://permalink.gmane.org/gmane.comp.desktop.xfce.commits/39067 Unfortunately, I don't know the luakit code well enough to attempt this fix. Can anybody help? |
As I guessed (and so then read there), it is not a fix, just because |
@paulprovost, try editing domain_props = {
["all"] = {
user_stylesheet_uri = "file://" .. luakit.data_dir .. "/styles/user.css",
},
} And create a file input[type='checkbox'] { -webkit-appearance: checkbox !important }
input[type='radio'] { -webkit-appearance: radio !important }
* { -webkit-appearance: none !important } Hope that helps. |
Looks like a piece of that workaround ported, yeah? |
Well, yeah. @paulprovost asked for help, and I helped. |
@ymln: Thanks for that. It worked for the buttons and text fields, which makes things much more readable. Checkboxes and radio boxes still have the black border, though. |
Did you try removing first two lines in * { -webkit-appearance: none !important } |
Yah, that gets me no checkboxes or radio buttons at all. |
I suggest you experiment with CSS to add some other styles to those checkboxes and radio buttons, maybe something like input[type='checkbox'] { -webkit-appearance: checkbox !important; border: 1px solid } You may try using Web Inspector too. |
Maybe you should apply the rest of the workaround style patch working |
The workaround is merely hiding GTK elements(at least, that's what they appear to be), except for radio and checkboxes. This makes other elements either not show, or as in the case of dropdowns, no dropdown arrow is shown. Checkboxes and radio buttons still have the black border around them. I've tried other CSS, but as of yet have not found anything that will cause these widgets to paint correctly. For some reason, transparency isn't working on these GTK elements(assuming that's what they are). |
Here is the webkit bug report: |
Midori seems to have solved this issue, and luakit hasn't. One suspects it's because of the version of webkitgtk they're using — is luakit using an older version? Would be nice to switch over to luakit properly. |
I think this possible is, although it can take a lot of time before I dive deep into the it and do it all properly; nevertheless, if there is anyone who wants to help with this, I can add they to luakit-crowd team and grant access. Currently I can't remember when I heard from Mason last time, and I actually have to finish other parts I haven't yet. |
BTW, I can't recall when and where I ran into those black rectangles. Hmmm. |
@socksy, now I had to reboot my PC and yet not started mate-settings-daemon (gnome-settings-daemon replacement), and I can see those crappy strange GTK2-vs-GTK3 elements. I am pretty sure they disappear just as they do when I start the daemon app, and you can try to reproduce the behaviour I mentioned. |
Ok, so I no longer see the black boxes after the last update. I am not running mate (nor do I wish to install it for a single application, using xmonad) so that can't have been it. Curious. Have they disappeared for everyone else? |
I was struggling with this issue for some time (on recent luakit and webkitgtk). Found a hint somewhere on the net about missing "composite" extension in Xorg causing this. I've finally managed to recompile Xquartz with this extension and black frames/borders are gone. Hooray! |
Closing due to inactivity |
Hello,
Just built luakit from git. Everything works fine, except that all UI elements (text fields, buttons, checkboxes, etc.) are framed by thick black outlines. What have I done wrong?
Thanks!
Paul
The text was updated successfully, but these errors were encountered: