Closed Bug 1163974 Opened 9 years ago Closed 9 years ago

[Gtk3] [Dark theme] text in highlighted preferences (about:preferences) is unreadable

Categories

(Firefox :: Settings UI, defect)

All
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 41
Tracking Status
firefox41 --- fixed

People

(Reporter: stransky, Assigned: stransky)

References

Details

Attachments

(3 files, 1 obsolete file)

Fedora/Gtk3/Dark theme

Dark theme in Gtk3 means that system uses white text on black background. On the preferences pannel (about:preferences), highlighted texts (on mouse over) are rendered by white color on white background. 

moz-buttonhovertext is used for the highlighted text color. Other colors seems to be hardcoded. I expect we should also hardcode the color for selected item.
Attached patch simple fix (obsolete) (deleted) — Splinter Review
Attached image example (deleted) —
Example of the highlighted text in dark color theme.
Comment on attachment 8608761 [details] [diff] [review]
simple fix

Can you please look at it? Thanks!
Attachment #8608761 - Flags: feedback?(jaws)
Assignee: nobody → stransky
Status: NEW → ASSIGNED
Comment on attachment 8608761 [details] [diff] [review]
simple fix

Review of attachment 8608761 [details] [diff] [review]:
-----------------------------------------------------------------

Sorry, but I'm not sure about this change either, redirecting to Gijs who may have a more solid opinion on it.
Attachment #8608761 - Flags: feedback?(jaws) → feedback?(gijskruitbosch+bugs)
Comment on attachment 8608761 [details] [diff] [review]
simple fix

What is this patch actually trying to do? Just adjust the text color of the labels of hovered radio items? Where is the rule that is setting this to begin with? You're updating the hover color for the entire radio checkmark tree. Is that really necessary?

New rules should be specific to the case in question, and ideally linux-only (use http://mxr.mozilla.org/mozilla-central/source/toolkit/themes/linux/global/in-content/common.css instead of common.inc.css, unless the problem is the same on Windows with dark themes, or something (seems unlikely, but possible)).
Attachment #8608761 - Flags: feedback?(gijskruitbosch+bugs)
The origin is here:
http://mxr.mozilla.org/mozilla-central/source/toolkit/themes/linux/global/checkbox.css#81

81 checkbox:not([disabled="true"]):hover {
82   color: -moz-buttonhovertext;
83   text-shadow: none;
84 }

where -moz-buttonhovertext is white on dark color themes so we need a fixed color for this. This bug affects Linux only.
Attached patch patch (deleted) — Splinter Review
What about this one? It uses the same color for normal/hovered text color (like on Windows).
Attachment #8608761 - Attachment is obsolete: true
Attachment #8616859 - Flags: review?(gijskruitbosch+bugs)
Comment on attachment 8616859 [details] [diff] [review]
patch

Review of attachment 8616859 [details] [diff] [review]:
-----------------------------------------------------------------

Please make this one rule (ie combine the selectors) and append it after the other radio rules, and add a comment before it explaining why we need to do this.
Attachment #8616859 - Flags: review?(gijskruitbosch+bugs) → review+
https://hg.mozilla.org/mozilla-central/rev/46fef2c23d99
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 41
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: