Closed
Bug 529129
Opened 15 years ago
Closed 14 years ago
Don't set lwthemetextcolor for lightweight themes that have text color in a mid luminosity range
Categories
(Toolkit :: UI Widgets, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: Unfocused, Assigned: Unfocused)
References
Details
Attachments
(1 file)
1.16 KB,
patch
|
dao
:
review-
|
Details | Diff | Splinter Review |
Bug 519486 adjusted the way dark vs bright text color is calculated, for setting lwthemetextcolor. The threshold used isn't optimal for some lightweight themes that have a text color that have a luminosity close to the threshold. These themes are getting a text-shadow that makes the text difficult to read. Examples: http://www.getpersonas.com/en-US/persona/46739 http://www.getpersonas.com/en-US/persona/47350 http://www.getpersonas.com/en-US/persona/40473 http://www.getpersonas.com/en-US/persona/34032 Changing the threshold would simply change which lightweight themes have issues, rather than actually reducing the number of themes that have issues. Instead, a mid-range of luminosity values can be defined to not have lwthemetextcolor set, thereby not showing a text-shadow. The downside of this is that not having a text-shadow isn't as good as having the correct text-shadow. Unfortunately, which text-shadow (white or black) is "correct" also depends on the background color. So this may be the best realistic option, short of letting lightweight themes specify which text-shadow they should have.
Flags: blocking-firefox3.6?
Assignee | ||
Comment 1•15 years ago
|
||
I'm not convinced this is the best solution possible, but it seems the best solution available.
Assignee: nobody → bmcbride
Attachment #412703 -
Flags: review?(dao)
Comment 2•15 years ago
|
||
Wouldn't block on it, can fix after we ship, but would likely take the patch.
Flags: blocking-firefox3.6? → blocking-firefox3.6-
Comment 3•15 years ago
|
||
70 seems really low. Is this for the halloween themes? Are you sure this doesn't turn off the shadow for too many cases where the shadow would help? > http://www.getpersonas.com/en-US/persona/40473 I'm still getting the shadow here. > http://www.getpersonas.com/en-US/persona/34032 This is largely unreadable regardless of whether there's a shadow. We shouldn't optimize for this.
Assignee | ||
Comment 4•15 years ago
|
||
(In reply to comment #3) > 70 seems really low. Is this for the halloween themes? Are you sure this > doesn't turn off the shadow for too many cases where the shadow would help? Yea, it is low. I don't think this makes it worse for themes, but I'm not convinced it makes it better either. > > http://www.getpersonas.com/en-US/persona/40473 > > I'm still getting the shadow here. Whoops - I either pasted the wrong link or uploaded a patch with the wrong threshold values. > > http://www.getpersonas.com/en-US/persona/34032 > > This is largely unreadable regardless of whether there's a shadow. We shouldn't > optimize for this. Yea, fair enough. I'm wondering if we're trying to be too smart here (and failing) - and should just let the theme optionally specify whether it should have a text-shadow or not.
Comment 5•14 years ago
|
||
Comment on attachment 412703 [details] [diff] [review] Patch v1 per previous comments -- we shouldn't take this without being convinced that it helps more than it hurts
Attachment #412703 -
Flags: review?(dao) → review-
Updated•14 years ago
|
Component: Theme → XUL Widgets
Flags: blocking-firefox3.6-
Product: Firefox → Toolkit
QA Contact: theme → xul.widgets
Version: 3.6 Branch → 1.9.2 Branch
Comment 6•14 years ago
|
||
> I'm wondering if we're trying to be too smart here (and failing) - and should
just let the theme optionally specify whether it should have a text-shadow or
not.
This seems the most logical.
Just allow a JSON attribute like textShadow: true/false
Assignee | ||
Comment 7•14 years ago
|
||
(In reply to comment #6) > Just allow a JSON attribute like textShadow: true/false Filed bug 549346 for this.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•