Description: On a 4K display with 200% scaling, the Styles Picker Widget in the Tabbed UI is too narrow vertically. Steps to Reproduce: 1.Run LibreOffice on KDE with 200% scaling Actual Results: Styles Picker takes up 50% of the vertical space in the Ribbon Expected Results: Styles Picker takes up ~80% of the vertical space in the Ribbon Reproducible: Always User Profile Reset: Yes Additional Info: Version: 7.2.4.1 / LibreOffice Community Build ID: 20(Build:1) CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb) Locale: en-GB (en_GB.UTF-8); UI: en-US 7.2.4-1 Calc: threaded
Thank you for reporting the bug. Cpuild you please attach a screenshot to make problem more visible? thank you. => NEEDINFO
Created attachment 177242 [details] screenshot of problem screenshot attached
I can reproduce on a non-HiDPI screen that it looks as in the attached screenshot when using the kf5 VCL plugin with SAL_USE_VCLPLUGIN=kf5 QT_SCALE_FACTOR=2 ./instdir/program/soffice --writer Full vertical space is used for the styles preview widget when using the gtk3 VCL plugin instead: GDK_SCALE=2 SAL_USE_VCLPLUGIN=gtk3 ./instdir/program/soffice --writer Version: 7.4.0.0.alpha0+ / LibreOffice Community Build ID: 7a4250b74b53c8f5d650319dfe0509ce9dd80900 CPU threads: 12; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb) Locale: en-GB (en_GB.UTF-8); UI: en-US Calc: threaded
The main problem is, that the widget doesn't scale at all. It has a fixed size, which is forced by StylesPreviewWindow_Impl::SetOptimalSize (and set in svx/uiconfig/ui/stylespreview.ui). Each preview item is also fixed to 100, 30 in StylesPreviewWindow_Base::UpdateStylesList. Implementing scaling is some larger work. For Qt we decided to rely on LO properly scaling stuff, while Gtk basically lets LO believe everything is 100% and the scales the output accordingly. And since Gtk just supports fixed scale sizes, that works in practice quite good (you can see this with a bit blurry images, like the large image in the About dialog, comparing GDK_SCALE=2 with QT_SCALE_FACTOR=2). Or the toolbar icons.
*** Bug 161162 has been marked as a duplicate of this bug. ***