Subject: Proposal for UI scaling

From: Gerry Boland <[email-masked]>
Date: Mon, 24 Aug 2015 19:05:02 +0100

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

---

From: Christopher James Halse Rogers <[email-masked]>
Date: Tue, 25 Aug 2015 09:19:11 +1000

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

As luck would have it, 
https://trello.com/c/kssfZgBH/234-13-pocketdesktopv1-provide-form-factor-dpi-etc-info-per-surface-to-shell 
is what I'm looking at next, which is the server→client side of this.

---

From: Daniel van Vugt <[email-masked]>
Date: Tue, 25 Aug 2015 09:49:38 +0800

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.