Re:Show HN: Don't code your UI, draw it
by madeofpalk on Monday November 19, 2018 @02:35AM
(#18484724)
Note I mentioned display _points_ rather than display _pixels_ - how do you create a UI that scales from a phone to a 27" monitor. This is more than just scaling up assets and turning on word wrap.
Re:Show HN: Don't code your UI, draw it
by qwerty456127 on Monday November 19, 2018 @08:29AM
(#18486239)
> This is more than just scaling up assets and turning on word wrap.
Why? What else is there? I'm actually curious. I personally have never dealt with displays bigger than 1280x1024.
There are 2 major strategies for responding to such a difference:
1. Vector scaling. It will make the difference irrelevant and the resulting UI will look approximately the same on whatever a resolution.
2. Capacity scaling. I.e. keep the same font letting more information to fit in the control without scrolling.
It may be a little bit hard to formalize but these two can be combined intelligently. It is also important to know which one the user prefers (e.g. I mostly prefer the second while many prefer the first).