Open Cal-Nine opened 2 months ago
Do you have something else in your config setting QT_AUTO_SCREEN_SCALE_FACTOR
? What's the output of printenv QT_AUTO_SCREEN_SCALE_FACTOR
normally?
I don't think I have anything else. This is the case at 100% global scaling in Plasma, and printenv QT_AUTO_SCREEN_SCALE_FACTOR
returns 0
I checked in a new user to see if it was a Plasma config issue, Krita behaved exactly the same
Some relevant info here: High DPI Displays | Qt 5.15.
It looks like expected that QT_AUTO_SCREEN_SCALE_FACTOR
need to be set to get scaling on HiDPI screens?
Note that personally I just set QT_SCALE_FACTOR=2
globally to get proper scaling for QT programs. I think many people do something similar
QT_SCALE_FACTOR=2 doubles the UI size, multiplying with Plasma Global Scaling.
I did realise, however, that the issue only occurs when my monitors are both set to a DIFFERENT global scaling.
it could be an issue with xwayland and KDE?
Krita cannot be wayland native until the protocol gets color management.
i am using Krita on hyprland with a high dpi laptop,
to fix the scaling i run echo "Xft.dpi: 192" | xrdb -merge
in the terminal.
oops I did not realise it was still X11. That would definitely be why, I get similar issues with all X11 apps.
Describe the bug
Krita GUI interface too small in KDE Plasma and has glitches where elements are cropped.
Steps To Reproduce
Steps to reproduce the behavior:
env QT_AUTO_SCREEN_SCALE_FACTOR=1 krita
or alter the exec line in the .desktop toExec=env QT_AUTO_SCREEN_SCALE_FACTOR=1 krita %F
Expected behavior
Krita interface appears normal without needing to adjust auto scale factor.
Screenshots
All screenshots use a 4K monitor with 120% global scaling in KDE Plasma. Default Install: (note cut off text in splash screen) With Fix:
Additional context
I haven't tested Krita on any other distributions so I'm not sure if this is an issue unique to NixOS (or KDE Plasma) but it is also a problem for a Flatpak so it seems like a broader issue. But I don't know what the policy is on making these kinds of fixes with NixOS, so I thought I'd post here as well as open a bug report with KDE here.
Notify maintainers
@abbradar @sifmelcara @nek0