ublue-os / bluefin

The next generation Linux workstation, designed for reliability, performance, and sustainability.
https://projectbluefin.io
Apache License 2.0
894 stars 137 forks source link

Sizes of applications are highly variable #1291

Open cflewis opened 2 months ago

cflewis commented 2 months ago

Describe the bug

Applications bundled with Bluefin appear to be the right size, but some popular applications from Flathub display in different sizes. I am using Framework 13 screen at 100% scaling with Large Fonts on (as is now default).

Zoom and Discord are the ones I have tried (see screenshot below). Both have enormous title bars.

Zoom displays text at the size I would expect. Discord displays with enormous text as well. Turning Large Fonts off makes the window fit, but it's still rendering at what would appear to be 200% scaling, which it surely isn't allowed to choose to do all by itself...? If I go into its settings and scale it down to 0.5, low and behold, everything inside the viewport is the right size. Enormous title bars remain.

I don't have this issue with any of the Bluefin bundled apps (Firefox, Ptyxis, anything that comes with Gnome). I don't know it it's some sort of Flatpak thing, Fedora 40 thing, or something else.

What did you expect to happen?

All apps have the same title bar size and text size within as those bundled with Bluefin.

Output of rpm-ostree status

State: idle
AutomaticUpdates: stage; rpm-ostreed-automatic.timer: no runs since boot
Deployments:
  ostree-image-signed:docker://ghcr.io/ublue-os/bluefin-dx:40
                   Digest: sha256:a0f41fac9cec2db4c3f43b262b51713ca1af5437e170bcd0cd32381308c04845
                  Version: 40.20240511.0 (2024-05-11T17:00:22Z)
                     Diff: 19 upgraded, 7 removed, 8 added

● ostree-image-signed:docker://ghcr.io/ublue-os/bluefin-dx:40
                   Digest: sha256:c7166f9b426c0be7bcea251ba8be1331c81796eedb4960947f53da5c34998d64
                  Version: 40.20240509.0 (2024-05-09T16:53:04Z)

  ostree-image-signed:docker://ghcr.io/ublue-os/bluefin-dx:40
                   Digest: sha256:a2f10747da235b82ad3f6a8ca9a5a6798da175d1220e1afdff3b544854420e66
                  Version: 40.20240508.0 (2024-05-08T16:54:59Z)

Output of groups

cflewis wheel

Extra information or context

I have not tried this outside of Wayland. In the attached screenshot, we see that the Files app has a reasonable title bar size and the text on the left is the right size too (ignore the big text the empty directory warning has!). Zoom has the enormous title bar, but the text inside is OK if a little small (I doubt it is respecting the Large Fonts from Accessibility). Discord has enormous title bar and enormous text as it's rendering at 200% scale.

Screenshot from 2024-05-11 14-05-43

m2Giles commented 2 months ago

Try changing the size of the legacy title font size in gnome tweaks.

Discord can work with wayland if you give it access to the wayland socket with flatseal. Might need to just enable that by default.

cflewis commented 2 months ago

Unfortunately legacy title font size appears to be gone: https://gitlab.gnome.org/GNOME/gnome-tweaks/-/issues/443 , so I'm not sure how to progress on the title bar issue. Discord itself is being finicky, I'll report back if I figure anything out on that side.

cflewis commented 2 months ago

OK, the best thing I have found thus far (after spending far too much time on this installing extensions and uninstalling extensions and everything else) is to use ungoogled Chromium to add apps as a "Run in Window" shortcuts. That's made Discord far more tolerable than the Flatpak. Zoom is tolerable enough as it is because it's just running fullscreen anyway. The situation is however a bit of a PITA.

I'm going to leave this open as it would be nice to see if anyone else has any thoughts.

EDIT: This does seem to be a Gnome issue. I tried Aurora. Discord is also pretty messed up viewport wise, but the toolbars are accurate.

cflewis commented 2 months ago

For posterity, the issue with Discord's viewport correctly working with the Framework's resolution is this: https://www.reddit.com/r/discordapp/comments/6shs9n/comment/dld24oi/ The suggested fix by the dev + scaling the appearance in the app to 50% makes it look normal. Doesn't help with title bars in Gnome, but it now works correctly in KDE.

I'm now going to bed for real now :sleeping: