Closed
Bug 793366
Opened 11 years ago
Closed 11 years ago
Add noise to the white background used for transparent images in image documents
Categories
(Toolkit :: Themes, defect)
Toolkit
Themes
Tracking
()
RESOLVED
FIXED
mozilla18
People
(Reporter: Dolske, Assigned: Dolske)
References
Details
Attachments
(2 files, 1 obsolete file)
374.93 KB,
image/png
|
shorlander
:
ui-review+
|
Details |
45.12 KB,
patch
|
jaws
:
review+
joe
:
review+
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
Bug 754133 changes our ImageDocument display to use a white (#ffffff) background for images, so that transparent images assuming a white background are still readable with our stylized imagedocs. I think we can improve this further, by adding some noise to that part (as we do with the dark background of the rest of the page). Looks a bit nicer, and acts as a (very subtle) cue that there's actually transparency, and not just a image saved with a white background. Some previously referenced example images: http://www.cdc.gov/nchs/data/databriefs/db88_fig1.png http://www.mozilla.org/images/template/dino.png http://www.mozilla.org/images/template/screen/logo_footer.png I've also moved the data: url for the existing noise texture to an actual image file. The image for the light noise is a copy from what's used in about:home (chrome://browser/content/abouthome/noise.png)
Attachment #663644 -
Flags: review?(jaws)
Assignee | ||
Comment 1•11 years ago
|
||
Assignee: nobody → dolske
Attachment #663647 -
Flags: ui-review?(shorlander)
Comment 2•11 years ago
|
||
Comment on attachment 663644 [details] [diff] [review] Patch v.1 Review of attachment 663644 [details] [diff] [review]: ----------------------------------------------------------------- Code here looks fine. As long as the noise isn't too bothersome for the graph/chart use case I'm fine with it. As discussed on IRC, maybe move the image files and the TopLevel*Document.css files to /toolkit/themes/*stripe/media.
Attachment #663644 -
Flags: review?(jaws) → review+
Comment 3•11 years ago
|
||
Oh, I forgot to mention... This change will probably break a lot of image reftests. See https://mxr.mozilla.org/mozilla-central/source/image/test/reftest/ImageDocument.css for one of the places that will also need to be updated. There are a couple ways to work around the image reftest situation, but I'm not sure which one we should do at the moment.
Comment 4•11 years ago
|
||
Comment on attachment 663647 [details]
Screenshot
I like it. It's subtle enough that it doesn't really affect dark on light images and yet it makes a pretty big difference in visibility of light on dark images.
Attachment #663647 -
Flags: ui-review?(shorlander) → ui-review+
Assignee | ||
Comment 5•11 years ago
|
||
Move stuff to the media subdir, and fixed up reftests. Pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=f429d0c48b84
Attachment #663644 -
Attachment is obsolete: true
Attachment #665185 -
Flags: review?(jaws)
Comment 6•11 years ago
|
||
Comment on attachment 665185 [details] [diff] [review] Patch v.2 Review of attachment 665185 [details] [diff] [review]: ----------------------------------------------------------------- r+ as long as the reftests pass. +1 for the NB.
Attachment #665185 -
Flags: review?(jaws) → review+
Comment 7•11 years ago
|
||
Try run was green, I think checking this in just got forgotten. Although I see that the patch is missing summary and author details.
Status: NEW → ASSIGNED
Keywords: checkin-needed
Assignee | ||
Comment 8•11 years ago
|
||
Yeah, was just waiting for Try and ui-r. Thanks whomever lands this! :)
Updated•11 years ago
|
Keywords: checkin-needed
Comment 9•11 years ago
|
||
Comment on attachment 665185 [details] [diff] [review] Patch v.2 Review of attachment 665185 [details] [diff] [review]: ----------------------------------------------------------------- Just realized that this also needs review from someone for the /content/html and /image/test portions. Flagging as appropriate.
Attachment #665185 -
Flags: review?(joe)
Attachment #665185 -
Flags: review?(bzbarsky)
![]() |
||
Comment 10•11 years ago
|
||
Comment on attachment 665185 [details] [diff] [review] Patch v.2 r=me
Attachment #665185 -
Flags: review?(bzbarsky) → review+
Updated•11 years ago
|
Attachment #665185 -
Flags: review?(joe) → review+
Comment 11•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/3685d18499d9
Flags: in-testsuite+
Comment 12•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/3685d18499d9
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
Comment 13•11 years ago
|
||
Is this really what we want to do? Adding noise on purpose? I strongly recommend to undo this change. I filed a bug report (bug 848018) before because I couldn't imagine this was intended behavior. Also the noisy gray site background should be changed (bug 789820).
You need to log in
before you can comment on or make changes to this bug.
Description
•