Closed Bug 1022123 Opened 10 years ago Closed 10 years ago

Missing borders on some input elements in gtk3 builds

Categories

(Core :: Widget: Gtk, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 978172

People

(Reporter: glandium, Unassigned)

References

Details

Attachments

(2 files)

See attached screenshot. It happens on the awesomebar, the search box, and some input elements in web forms (like the very one I'm using to file this bug)
Blocks: gtk3
It may or may not be related, but the burger menu also doesn't have a border.
(In reply to Mike Hommey [:glandium] from comment #1) > It may or may not be related, but the burger menu also doesn't have a border. Same for "bubbles" from the toolbar: download, bookmarks, certificate info
So, the problem, at least for the search box and url bar, is that ThreeDShadow resolves to rgba(0,0,0,0) (so essentially, transparent)
Of the cached colors in nsLookAndFeel, four are RGBA(0,0,0,0): - sComboBoxBackground - sButtonBackground - sButtonInnerDarkBorder - sButtonOuterLightBorder If I force them all to have at least a value for the alpha channel, I get back all the missing borders (on the search box, url bar, burger menu, bookmark menu, certificate info, download pop down), albeit with the wrong color. I haven't looked up which one(s) are actually relevant.
And that, in turn, is because the Adwaita theme *does* define a transparent color for border-color, and uses a border-image.
This is a screenshot of gtk3 firefox running with the following ~/.config/gtk-3.0/gtk.css in the background, and without on the foreground. GtkButton { border-color: #f00; background-color: #0f0; } That helps see what is using the button border color and what is using the button background color. Both are transparent by default in Adwaita.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Blocks: 1034064
No longer blocks: 1034064
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: