Per display is kind of right, but it also varies per surface (depending on which display it's mostly on).

We already have a "DPI" attribute per surface that's not fully wired up. My thought was to add a "scale" attribute next to that, so that anyone probing the DPI of a surface will get (display_DPI * scale).

Scale alone is overly simplistic for professional UI design, and when I tried to implement just DPI alone it was met with some resistance and never got finished. So I think having both is the answer. That way you can build your toolkit to look at DPI or a simple scale.


On 25/08/15 02:05, Gerry Boland wrote:
Hey folks,
chatting with the UITK guys, they need support for UI scaling (i.e. grid
unit value) per display. I think adding a scale parameter to Mir would
make sense for this. I've written up a proposal here, please have a look
and see what you think:

https://docs.google.com/document/d/1Cr-8qz_3DTxOyOiZIQjgX6lVdQQulxfE_5uAValKAdY/edit#

Feel free to comment
Thanks
-Gerry




--
Mir-devel mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/mir-devel

Reply via email to