Bug 410021

Summary: Various hi-dpi problems
Product: [Applications] Ruqola Reporter: Jean-Michaël Celerier <jeanmichael.celerier>
Component: frontendAssignee: Laurent Montel <montel>
Status: RESOLVED FIXED    
Severity: normal CC: bruno, vinz
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot
ruqola inconsistend dpi rendering

Description Jean-Michaël Celerier 2019-07-20 07:38:05 UTC
Created attachment 121639 [details]
screenshot

STEPS TO REPRODUCE
1. Run Ruqola on a 4k screen 

OBSERVED RESULT
- Search room on top is too big and goes beyond the header
- The button to the right of search room too 
- Likewise for the other buttons at the top right of the window
- Emojis in text seem to take too much height and are upscaled with a bilinear algorithm
- Other icons at the bottom right seem to also be upscaled, but without a bilinear algorithm and thus pixell-y 


EXPECTED RESULT
- Look like Qt Creator in hidpi with crisp icons at the right size :p 

SOFTWARE/OS VERSIONS
% LANG=C pacman -Qi plasma-desktop
Name            : plasma-desktop
Version         : 5.16.3-1
Description     : KDE Plasma Desktop
Architecture    : x86_64

% LANG=C pacman -Qi karchive
Name            : karchive
Version         : 5.60.0-1
Description     : Qt 5 addon providing access to numerous types of archives
Architecture    : x86_64
Comment 1 Laurent Montel 2019-07-31 15:47:08 UTC
I will try to fix it soon.
Comment 2 Bruno Friedmann 2022-01-17 09:17:27 UTC
With Ruqola 1.5.54(alpha) on openSUSE Tumbleweed.
Linux 5.16.0-1-default x86_64 GNU/Linux
nvidia: 470.94
Qt: 5.15.2 
KDE Frameworks: 5.90.0
Plasma: 5.23.5 
kmail2 5.19.1 (21.12.1)

QT_SCREEN_SCALE_FACTORS=DP-5.8=1.5;DP-5.1=1.0;DP-0=1.5

I'm using ruqola on my second screen (hp zr2240w which should have a 96dpi DP-5.1 with normally a scale at 1.0
My main screen is a dell P2715Q 4K (DP-5.8 with a scale factor 1.5)
I'm still using X11 with nvidia drivers.
Recently I remove all forced dpi parameter (launch x11 with --dpi=144, font rendering forced at 144dpi, and remove the scale for the additional screen).
I know that multi scaling under X11 is not that well supported, but here it seems that different parts of the software are rendered with
non consistent way

Due to some privacy I can expose the whole conversation, but it's visible that between nickname (big + bold) and conversation text (two time too small) there's differences.

I hope you will be able to track down those glitches.
ps : if you need more printscreen I can provide you some by private channel. Just ask.
Comment 3 Bruno Friedmann 2022-01-17 09:18:19 UTC
Created attachment 145577 [details]
ruqola inconsistend dpi rendering

Illustrating rendering glitches.
Comment 4 Laurent Montel 2022-01-18 07:12:01 UTC
Can you test against ruqola 1.6.1 ?
I know that I made a lot of fix so perhaps there is a fix for you.

I can't see where is the problem as we use same font (bold for user name and not bold for text but same font)
Comment 5 Vinzenz Vietzke [TUXEDO] 2024-02-21 13:23:03 UTC
It looks like this is not a problem anymore. I'm using a 4k screen and everything looks fine.
Comment 6 Laurent Montel 2024-02-21 21:22:34 UTC
Ok seems fixed.