diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2021-01-14 04:08:48 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-01-19 12:35:29 -0800 |
commit | cb71fb28227f2ff57604b4adafe192c8ba1f7743 (patch) | |
tree | c2f2916809bcae11e515c2234b55b0d66e747758 /.mailmap | |
parent | f26f71a80b13a9ddf9428e520d74043747432e10 (diff) | |
download | subsurface-cb71fb28227f2ff57604b4adafe192c8ba1f7743.tar.gz |
mobile/UI: correctly scale UI without restart
The fact that the rescaling in the settings gave different results from
what we got after a restart really should have been a dead giveaway that
the code was fundamentally flawed.
With this, if the user picks smaller, regular, or larger they now always
get the same, consistent values for gridUnit and font sizes.
This also gives up on the idea that we can just force the gridUnit to be
smaller to make things work if the font (which drives the gridUnit) is
too big for a screen. That fundamentally cannot work and gives a
horrible UI experience. So instead simply warn the user and continue
with matching font / gridUnit, which will still give a bad experience,
but at least we told the user about it and didn't pretend this was ok or
fixable.
Finally, this gets the factors right when switching from smaller to
larger or back, without stopping at regular on the way.
One odd side effect of this code is that under certain conditions
(number of columns changes) the display window when running mobile on
desktop will resize. That's kind of odd, but as that is not /really/ our
target platform, for now I'd consider it acceptable. But it does deserve
more investigation.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions