Closed
Bug 818940
Opened 12 years ago
Closed 12 years ago
Start Page does not receive High DPI art on Windows
Categories
(Firefox :: Theme, defect)
Tracking
()
RESOLVED
FIXED
Firefox 23
People
(Reporter: edwardsgreg, Assigned: jfkthame)
References
(Blocks 1 open bug)
Details
Attachments
(5 files, 1 obsolete file)
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20121204 Firefox/19.0
Build ID: 20121204042015
Steps to reproduce:
Set Windows's DPI to something high enough that you can notice scaling on 96dpi images.
Launch Firefox.
Actual results:
Observe that the icons in the Start Page are the low-resolution, 96dpi versions.
Expected results:
The high resolution icons should be used, as on Mac OSX.
Reporter | ||
Comment 1•12 years ago
|
||
Updated•12 years ago
|
Component: Untriaged → General
Updated•12 years ago
|
Component: General → Graphics
Product: Firefox → Core
Updated•12 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•12 years ago
|
||
Reproduced on the 12/10 Nightly, on Windows 7 64bit.
Updated•12 years ago
|
Component: Graphics → Theme
Product: Core → Firefox
Assignee | ||
Comment 3•12 years ago
|
||
If the design folk want to provide custom graphics for 125% and/or 150% scale factors, that'd be fine; but in the meantime, we can significantly improve things by simply using the 2x graphics designed for Retina Macs when the resolution scale is 150% (144dpi) or higher. Downscaling is better than upscaling. :)
(We could even do this for 125%, but at that size the downscaled 2x Sync icon looked a little rough to me, so I'm proposing to make this kick in at 150%, at least for the time being. At 125%, the upscaled standard-size graphics don't look so bad anyway...)
Assignee: nobody → jfkthame
Attachment #731875 -
Flags: review?(fyan)
Assignee | ||
Comment 4•12 years ago
|
||
This shows the improvement we can get at 150% scale by using the Retina graphics; overall, they look a lot crisper.
Comment 5•12 years ago
|
||
Comment on attachment 731875 [details] [diff] [review]
patch, use the 2x (Mac Retina) graphics for about:home on Windows at 150% or larger
Review of attachment 731875 [details] [diff] [review]:
-----------------------------------------------------------------
Could you also fix the search engine logo in aboutHome.js? (Look for instances of `imageHD`.)
Since we're simply hard-coding the images, which means that both data urls will get evaluated in JS anyway, I think we should get rid of the hacky `imageHD` property and `if` branch and simply set the 2x image data url as the `image` property until we get search engine logo images moved into the OpenSearch definition files.
::: browser/base/content/abouthome/aboutHome.css
@@ +348,5 @@
> +/* [HiDPI]
> + * At 150% (1.5dppx) or higher, prefer downscaling the 2x Retina graphics
> + * rather than upscaling the original-size ones (bug 818940).
> + */
> +@media (min-resolution: 1.5dppx) {
I discussed this with Stephen, and I think we'd prefer to scale the 2x graphics for anything over 100%.
The media query should be:
@media not all and (max-resolution: 1dppx)
Media query operator precedence doesn't make sense. :/
Attachment #731875 -
Flags: review?(fyan) → feedback+
Assignee | ||
Comment 6•12 years ago
|
||
Attachment #731875 -
Attachment is obsolete: true
Attachment #732807 -
Flags: review?(fyan)
Assignee | ||
Comment 7•12 years ago
|
||
Having this coded in a data: URL is horrible! But fixing that is left for another bug, another day...
Attachment #732810 -
Flags: review?(fyan)
Updated•12 years ago
|
Attachment #732807 -
Flags: review?(fyan) → review+
Comment 8•12 years ago
|
||
Comment on attachment 732810 [details] [diff] [review]
part 2 - also use the 2x version of the search logo (unconditionally)
Review of attachment 732810 [details] [diff] [review]:
-----------------------------------------------------------------
(In reply to Jonathan Kew (:jfkthame) from comment #7)
> Having this coded in a data: URL is horrible! But fixing that is left for
> another bug, another day...
Yes, we know it's horrible.
We'll fix it in bug 853992.
Thanks for working on this. :)
Just curious, what did you use to split up the gigantic data url into neat ~70-character chunks?
Attachment #732810 -
Flags: review?(fyan) → review+
Assignee | ||
Comment 9•12 years ago
|
||
I used a regex search-and-replace in TextWrangler, roughly equivalent to
s/([^ ]{70})/"\1"\n /g
or words to that effect.
Assignee | ||
Comment 10•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/460e5359bf20
https://hg.mozilla.org/integration/mozilla-inbound/rev/997b1d4d3122
Target Milestone: --- → Firefox 23
Comment 11•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/460e5359bf20
https://hg.mozilla.org/mozilla-central/rev/997b1d4d3122
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•