Bug 465945 - [X11][regression] Global scale doesn't affect GTK widget sizes
Summary: [X11][regression] Global scale doesn't affect GTK widget sizes
Status: RESOLVED FIXED
Alias: None
Product: Breeze
Classification: Plasma
Component: gtk theme (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-17 16:25 UTC by Emilio Cobos Álvarez (:emilio)
Modified: 2023-02-21 23:39 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.27.1
Sentry Crash Report:


Attachments
screenshot of tiny window icons (138.82 KB, image/png)
2023-02-17 16:25 UTC, Emilio Cobos Álvarez (:emilio)
Details

Note You need to log in before you can comment on or make changes to this bug.
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