Closed
Bug 796909
Opened 12 years ago
Closed 12 years ago
Use 2x Images on About:Home for HiDPI
Categories
(Firefox :: Theme, enhancement)
Tracking
()
RESOLVED
FIXED
Firefox 18
People
(Reporter: shorlander, Assigned: fryn)
References
Details
Attachments
(4 files, 2 obsolete files)
9.04 KB,
text/plain
|
Details | |
13.66 KB,
patch
|
Dolske
:
review+
|
Details | Diff | Splinter Review |
59.88 KB,
application/zip
|
Details | |
81.96 KB,
patch
|
Dolske
:
review+
|
Details | Diff | Splinter Review |
Now that bug 781327 has landed we should update about:home to be sharp in HiDPI also.
Attaching the @2x assets. The search engine logo is currently a data URI, I will attach that separate.
Reporter | ||
Comment 1•12 years ago
|
||
Assignee | ||
Comment 2•12 years ago
|
||
This was a bit tricky, because we're displaying these images as generated content, but I tackled it with some CSS3. ;)
(Someday, when we merge about:home and about:newtab, we'll pull all the about:home theme code out of browser/base/.)
Assignee | ||
Comment 3•12 years ago
|
||
Attachment #667228 -
Flags: review?(dolske)
Comment 4•12 years ago
|
||
Comment on attachment 667228 [details] [diff] [review]
part 2: HiDPI search engine logo
Review of attachment 667228 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/base/content/abouthome/aboutHome.js
@@ +174,5 @@
> logoElt.src = searchEngineInfo.image;
> +#ifdef XP_MACOSX
> + if (searchEngineInfo.imageHD && window.matchMedia("(min-resolution: 2dppx)"))
> + logoElt.src = searchEngineInfo.imageHD;
> +#endif
I suppose, in theory, that putting in an actual CSS @media rule (to control display of a low-res or hi-res image) would be nice for the potential future such that dragging the window from a low-to-high-dpi monitor would be ideal... But I'll take this as a simple patch that we can make better in the future with image-set anyway.
Attachment #667228 -
Flags: review?(dolske) → review+
Assignee | ||
Updated•12 years ago
|
Attachment #667141 -
Attachment description: patch → part 1
Reporter | ||
Comment 5•12 years ago
|
||
Added Snippet Icons.
Attachment #666973 -
Attachment is obsolete: true
Assignee | ||
Comment 6•12 years ago
|
||
Added the new default snippet images from "AboutHome HiDPI Assets - i02".
Attachment #667141 -
Attachment is obsolete: true
Attachment #667141 -
Flags: review?(dolske)
Attachment #667864 -
Flags: review?(dolske)
Updated•12 years ago
|
Attachment #667864 -
Flags: review?(dolske) → review+
Assignee | ||
Comment 7•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/d536fb994aff
https://hg.mozilla.org/integration/mozilla-inbound/rev/ecece4b1c684
Thanks for the reviews! :)
We'll update the Firefox logo image in a followup bug (which will also allow us to remove about-logo.png from a few directories).
Target Milestone: --- → Firefox 18
Comment 8•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/d536fb994aff
https://hg.mozilla.org/mozilla-central/rev/ecece4b1c684
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•