Bug 465945

Summary: [X11][regression] Global scale doesn't affect GTK widget sizes
Product: [Plasma] Breeze Reporter: Emilio Cobos Álvarez (:emilio) <emilio>
Component: gtk themeAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: agrinev98, nate, nicolas.fella, uhhadd
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=442901
Latest Commit: Version Fixed In: 5.27.1
Attachments: screenshot of tiny window icons

Description Emilio Cobos Álvarez (:emilio) 2023-02-17 16:25:57 UTC
Created attachment 156380 [details]
screenshot of tiny window icons

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Start Plasma 5.27 on X11
2. Set global scale to 200%
3. Use any GTK application like gtk4-demo

OBSERVED RESULT

Tiny icons and scrollbars (see screenshot).

EXPECTED RESULT

Icons and scrollbars are scaled properly. This is a regression from 5.26. It seems the scale is now communicated via the text scale, but not the window scale.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.27.0
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Comment 1 Nicolas Fella 2023-02-17 16:52:52 UTC

*** This bug has been marked as a duplicate of bug 465733 ***
Comment 2 Emilio Cobos Álvarez (:emilio) 2023-02-17 17:41:58 UTC
Isn't the duplicate wayland-specific? This happens on a plain x11 session
Comment 3 Emilio Cobos Álvarez (:emilio) 2023-02-18 01:21:22 UTC
I don't think this is bug 442901 since that was specific to wayland. What happens here is that GTK has two scales, the "window" scale, and the "font" scale.

Before, the global scale used to be floored, and given as window scale, and the rest was passed as font scale. Now it seems it's unconditionally passed as font scale, which seems broken because it affects text, but not the size of other widgets like scrollbars or window buttons.
Comment 4 Nate Graham 2023-02-21 23:39:46 UTC
This is fixed in Plasma 5.27.1