Ismael González
unread,Jul 12, 2013, 3:26:54 AM7/12/13You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Tim Chien, Patryk Adamczyk, dev-...@lists.mozilla.org, epang, Telefonica Sergio Villa, Jaime Chen, Neo Hsieh, ARNAU MARCH CASTILLO, Lucas Adamski, Horlander Stephen, Gordon Brander
> 1. Graphics & Icon Fonts.
I think is great idea to generate a custom web-font with icons (Thx Arnau for testing it some weeks ago) and make a first attempt using it on the statusbar.
This of course have design limitations, we will not be able to use gradients on the icons and if shadows needed must be done via text-shadow which is not as customizable as box-shadow, also using it excessively will make performance lossy. Jus't keep it in mind.
> But, we can fix the labels by setting font-size to 87.71% of the
> original size to make the them look the same (in terms of size) on ZTE
> Open.
Maybe using different scale proportions for images vs text is something that will break the proportions of the UI.
I mean right now the UI is a little bit bigger than it should be, but it's proportional, if we use different scales factor depending on the type of content the UI will be creepy.
Thinking again in the numbers provided, the best way to calculate the scale ratio is always based in viewport width instead of ppi. As viewport size is based on ppi and physical screen size.
I believe that the target always must be to achieve a 320px virtual viewport (480/320 = 1.5 scale factor)
So i don't think the UI right now is bigger than it should be, in fact the key proof to know it the UI is scaled correctly is to try to physically measure a homescreen icon in both devices. Both numbers should be equal (1.5cm or whatever the size is)
Is totally feasible, we will have to re-adpot "responsive.css" maybe with another name and calculations :D. But as i've said i don't think this is a solution.
--Ismael González / @basiclines
El viernes, 12 de julio de 2013 a las 05:05, Tim Chien escribió:
> Let me put some actual numbers to what Patryk want here:
>
> On a ZTE Open device we just shipped, FxOS comes with
> 320 x 480 pixels, 3.5 inches (~165 ppi pixel density), 1dppx
>
> So on a WVGA device, say Galaxy S2:
> 480 x 800 pixels, 4.3 inches (~217 ppi pixel density), 1.5dppx
>
> The size of 1 CSS pixel relative to ZTE Open will be
> 165/217*1.5=1.140552995 times bigger.
> We really cannot set device pixel per px to 1.31515151515151515151515
> (it will make the bitmaps looks terrible), so we will just have to
> leave dppx as 1.5x, and accept the fact that the UIs and controls will
> be 1.14x bigger.
>
> But, we can fix the labels by setting font-size to 87.71% of the
> original size to make the them look the same (in terms of size) on ZTE
> Open.
>
> My understanding is that this is entire feasible with CSS media
> queries, with |resolution| feature and the dppx unit
>
https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries#resolution
>
> Although I admit just like the usage of |rem|, we would probably need
> to formalize a Gaia-wide CSS coding style rule to make this work.
>
> Thoughts?
>
> _______________________________________________
> dev-gaia mailing list
>
dev-...@lists.mozilla.org (mailto:
dev-...@lists.mozilla.org)
>
https://lists.mozilla.org/listinfo/dev-gaia
>
>