Summary: | NB TABBED: Styles Preview Widget does not implement scaling (visible in qt / kf5) | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | richrocksmyworld |
Component: | Writer | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | NEW --- | ||
Severity: | normal | CC: | jan.public, m.weghorn |
Priority: | medium | ||
Version: | 7.2.4.1 release | ||
Hardware: | All | ||
OS: | Linux (All) | ||
See Also: | https://bugs.documentfoundation.org/show_bug.cgi?id=160813 | ||
Whiteboard: | |||
Crash report or crash signature: | Regression By: | ||
Bug Depends on: | |||
Bug Blocks: | 90796, 107237, 107328 | ||
Attachments: | screenshot of problem |
Description
richrocksmyworld
2021-12-18 12:53:53 UTC
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. |