FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

[Bug]: Font and UI Resolution on mobile low

Open CaptainMorgan12 opened this issue 3 years ago • 1 comments

Guidelines

Describe the bug

Environment: freetube flatpak, 0.17.0-1pureos1, mobile portrait, 720x1440, Librem 5 phone using Gnome GTK base.

Screenshot from 2022-04-23 11-55-33

Observe Subscriptions font is fuzzy.

Expected Behavior

Font and UI rendered maybe more based on GTK presets or libadwaita.

Issue Labels

visual bug

FreeTube Version

0.16.0 beta

Operating System Version

PureOS

Installation Method (If applicable)

Flathub

Last Known Working FreeTube Version (If Any)

No response

Primary API used

No response

Additional Information

No response

Nightly Build

CaptainMorgan12 avatar Apr 23 '22 21:04 CaptainMorgan12

I can confirm that my PinePhone Pro running Arch Linux with Plasma Mobile is also affected by this issue. It seems to me that this is a problem related to the 200% system-wide UI scale used by default in Plasma Mobile (and probably PureOS). Screenshot_20220726_133132 Setting the system UI scale to 100% and setting the FreeTube UI scale to 200% causes FreeTube to display properly scaled content at full resolution. Screenshot_20220726_140046 As pointed out in electron/electron#6571, it may be possible to force a 100% scale by placing the following lines in the main process:

app.commandLine.appendSwitch('high-dpi-support', 1)
app.commandLine.appendSwitch('force-device-scale-factor', 1)

ScanuNicco avatar Jul 26 '22 21:07 ScanuNicco

AFAIK is not a FreeTube bug, it's due to xwayland being used and xwayland making things fuzzy at 2x. This should be solvable by setting flags for chromium/electron, maybe this AUR buld can help with figuring out a flatpak implementation for avoiding xwayland: https://aur.archlinux.org/packages/freetube-wayland

1peter10 avatar Sep 27 '22 11:09 1peter10

Yeah I recently got a new laptop and discovered that blurry apps are just a normal thing on xwayland. Turns out that Plasma desktop 5.26 is going to fix this by adding an "allow apps to scale themselves" option in display settings, so we'll see if that makes it onto plasma mobile.

ScanuNicco avatar Sep 28 '22 20:09 ScanuNicco

Do you guys think that this can be closed?

While it still might be worth implementing a workaround it seems like the root problem with this is not freetube, so yeah probably.

ScanuNicco avatar Sep 29 '22 00:09 ScanuNicco