diff options
author | Tor Lillqvist <tml@collabora.com> | 2019-03-14 13:40:43 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2019-03-14 15:23:56 +0200 |
commit | e21979195fc08d2ca1a0736deb986429e12c49aa (patch) | |
tree | 2f57c6c36584956e83fcae858042e7d97407bca2 /vcl/ios | |
parent | 2292a5dd12bf3b137f36058b0172876e821ce8a4 (diff) |
Further tweaks that affect the "tunnelled" dialogs in the iOS app
The bestmaxFrameSizeForScreenSize() function is full of magic numbers.
(There originally, in OOo times, was a comment in there that said
"fill in holy default values brought to us by product management"
which says it all, really.) Those numbers have little or no relevance
on iOS. Instead, make this function return the largest square that
will fit on the display (square so that it will fit in either
orientation, in case the device is rotated while a tunnelled dialog is
displayed).
And as a consequence the defaut font size on iOS can be bumped up a
bit, to 10. Now the problematic dialogs look even better.
Note that this is a cherry-pick from our vendor branch (cp-6.0). It
hasn't actually been tested as the iOS app doesn't work at the moment
if built from the master branches of online and core.
Change-Id: I043d8f9947520adb04bd952ee49f9c7844a1fa8c
Diffstat (limited to 'vcl/ios')
-rw-r--r-- | vcl/ios/iosinst.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/ios/iosinst.cxx b/vcl/ios/iosinst.cxx index b53bb30b9271..19cc75e5057b 100644 --- a/vcl/ios/iosinst.cxx +++ b/vcl/ios/iosinst.cxx @@ -28,7 +28,7 @@ #include <vcl/layout.hxx> #include <vcl/settings.hxx> -// Horrible hack +// Totally wrong of course but doesn't seem to harm much in the iOS app. static int viewWidth = 1, viewHeight = 1; class IosSalData : public GenericUnixSalData @@ -107,7 +107,7 @@ public: virtual void UpdateSettings( AllSettings &rSettings ) override { // Clobber the UI fonts - vcl::Font aFont( OUString::fromUtf8( [[[UIFont systemFontOfSize:7] familyName] UTF8String] ), Size( 0, 7 ) ); + vcl::Font aFont( OUString::fromUtf8( [[[UIFont systemFontOfSize:10] familyName] UTF8String] ), Size( 0, 10 ) ); StyleSettings aStyleSet = rSettings.GetStyleSettings(); aStyleSet.SetAppFont( aFont ); |