nitanmarcel / cinny-click-packaging

Yet another matrix client. Click packaging for locally running on Ubuntu Touch
Other
9 stars 7 forks source link

[Focal devel] tiny scaling due to system changes, regarding auto-scaling #23

Closed luksus42 closed 1 year ago

luksus42 commented 1 year ago

The default scaling on Ubuntu Touch devices (phones) is too small and the app appears in desktop-mode, which makes it hard to use on a mobile-phone-screen.

To Reproduce

  1. Ubuntu Touch version must be the devel-channel of 20.04 (Focal Fossa)
  2. Just start the app

Expected behavior The app should start in mobile-device mode (not desktop-mode) and proper scaling.

Screenshots grafik

Additional context That issue is caused by changes of https://gitlab.com/groups/ubports/development/core/-/epics/39. fyi @sunweaver

nitanmarcel commented 1 year ago

This would fix it? QT_AUTO_SCREEN_SCALE_FACTOR ?

luksus42 commented 1 year ago

To be honest, I don't know. Waiting for @sunweaver to clarify this.

nitanmarcel commented 1 year ago

Update on this. We'll have to wait, for OTA2, this change will either get reverted. From my understanding of the issue this is a regression in the PR mentioned.

Read from https://t.me/ubports_devel/73290

nitanmarcel commented 1 year ago

@luksus42 are you on the latest devel to test if it was already fixed? Someone in the devel group said that AA_EnableHighDpiScaling should work now

lduboeuf commented 1 year ago

should be good now ? No issues for me

luksus42 commented 1 year ago

@luksus42 are you on the latest devel to test if it was already fixed? Someone in the devel group said that AA_EnableHighDpiScaling should work now

Its working and scaling is correct again. But as I understand the change was just reverted and it may be a topic again in future releases of UT.

nitanmarcel commented 1 year ago

Awesome thanks.

sunweaver commented 1 year ago

@luksus42 are you on the latest devel to test if it was already fixed? Someone in the devel group said that AA_EnableHighDpiScaling should work now

Its working and scaling is correct again. But as I understand the change was just reverted and it may be a topic again in future releases of UT.

The change is not reverted, really, we more or less went on a side-effects Germany that shows what happens when session-wide setting QT_AUTO_SCREEN_SCALE_FACTOR to 1 or 0 instead of not setting it, at all.

It seems that either value for QT_AUTO_SCREEN_SCALE_FACTOR has quite an impact in that sense, that the env var setting gets enforced even if configured otherwise on a per application level.

See https://gitlab.com/ubports/development/core/ubuntu-touch-session/-/merge_requests/43

Long term solution shall be to use Qt auto-scaling, but we still need to investigate on qtwebengine and some other apps why the broke with qt auto-scaling enforced.