Wrong selection color when using the GTK backend
Categories
(Core :: Widget: Gtk, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox82 | --- | fixed |
People
(Reporter: tintou, Assigned: emilio)
References
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
Steps to reproduce:
Select a text on any webpage
Actual results:
The text and background colors haven't changed
Expected results:
The text and background colors should be the selected text color
Reporter | ||
Comment 1•4 years ago
|
||
I think that I found the issue:
According to https://github.com/mozilla/gecko-dev/blob/master/widget/gtk/nsLookAndFeel.cpp#L1128 it seems that Firefox is using the color of the selected|active state of GtkTextView.text
According to the Gtk documentation ( https://developer.gnome.org/gtk3/stable/GtkTextView.html#id-1.3.11.8.12.3 ) the GtkTextView has a selection node which is the one providing the selection color
Reporter | ||
Comment 2•4 years ago
|
||
Issue reproducible with the latest elementary OS GTK Stylesheet https://github.com/elementary/stylesheet/
Comment 3•4 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Updated•4 years ago
|
Assignee | ||
Comment 6•4 years ago
|
||
Ah, sorry, they were linked already above...
Assignee | ||
Comment 7•4 years ago
|
||
Assignee | ||
Comment 8•4 years ago
|
||
The attached patch should fix it, but if you can give a way to repro the issue on Fedora it'd be great, so that I can confirm it. Otherwise could you confirm that before I send it for review? :)
Reporter | ||
Comment 9•4 years ago
|
||
I'm unable to test it as it seems that running ./mach build
on my system doesn't take the changes to the GTK backend into account. To test it, simply use the latest master of the elementary GTK theme ( https://github.com/elementary/stylesheet/ )
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Comment 10•4 years ago
|
||
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ee33d63ab06a Use GtkTextView.text.selection to get selection colors in GTK. r=stransky
Comment 11•4 years ago
|
||
bugherder |
Description
•