-
Notifications
You must be signed in to change notification settings - Fork 37
Non-integral HiDPI display scaling factors not working right (in KDE?) #389
Comments
What are your default settings for those variables? Looking at the top bar, it uses BadgeRadioButton which uses This Arch wiki article suggests that GDK will scale text but not icons. I've never seen any benefit of going about 1440p at 1:1 scaling, so I don't know how people normally handle this. |
I don't think you're right about IconSize.BUTTON - look in cawbird/src/widgets/BadgeRadioButton.vala Line 64 in 4b2536e
where BADGE_SIZE is set to 10 and then used to draw the icon. |
As I'm using KDE I don't normally have any env-vars named GDK_* set. I don't understand what you mean by the comment about 1440 and 1:1 scale, as I'm using a 3840 screen with 7:4 scale... |
But at line 54 it bails early if we're not showing the "unread" badge. So the core drawing of the icon is done at line 53 by GTK/GDK and that should be the drawing of the unread badge. cawbird/src/widgets/BadgeRadioButton.vala Line 54 in 4b2536e
Okay, I'll have to see what it defaults to.
I've got a 1440p monitor. I use it at 100% scaling (1:1) because it gives me more screen estate without wasting pixels. So I have no experience with other scaling beyond "let the toolkits do the right thing". One other question: how do other GTK apps behave? How do they scale their icons? |
Which display server are you using? (X11 or Wayland) According to Phoronix this was fixed several years ago and KDE sets the "right" values for GTK. However GTK only supports integer amounts. I'd still be interested to know what happens with other GTK apps. |
Describe the bug
I have a 28" 4K screen using KDE Plasma on Ubuntu 21.04, using display scaling 175%. In this setup, cawbird displays all except the tweet area as tiny, while the tweets are the expected size. In the screenshot, I have placed cawbird between a Konsole window and Firefox; you can see window decorations and icon sizes are very different.
It was suggested I try with combinations of GDK scaling env-vars; I did so but then the tweet text comes out massive. So,
looks like this:
and on the individual tweet page like/reply etc:
while:
looks like this:
that is, much larger than it was, and for me unusably so. I have tried changing various combinations of the 3 vars but couldn't find a version that did better. I have also tried setting all vars to '1' just in case there was a difference between unset and set to 1, but there isn't: '1' is the same as unset.
Trying with non-integral scaling, e.g. GDK_SCALE=1.75, is equivalent to the rounded down version, i.e. GDK_SCALE=1
System details:
Additional context
Running
G_MESSAGES_DEBUG=cawbird cawbird
doesn't help.The text was updated successfully, but these errors were encountered: