SUMMARY The highlighting for the options in the sub-pixel rendering and hinting combo-boxes are inconsistent with the other combo-boxes throughout the plasma system settings. The highlighting in those are a faint blue(in breeze dark) and they don't go through the entire box length. STEPS TO REPRODUCE 1. open system settings > appearance > fonts. 2. click in the sub-pixel rendering or hinting options and hover your cursor over the options. 3. see that the highlighting stops just after the last letter of the option's name instead of continuing until the end of the combo-box. SOFTWARE/OS VERSIONS Operating System: Manjaro Linux KDE Plasma Version: 5.21.80 KDE Frameworks Version: 5.79.0 Qt Version: 5.15.2 Kernel Version: 5.9.16-1-MANJARO (64-bit) Graphics Platform: Wayland Processors: 4 × Intel® Core™ i5-6200U CPU @ 2.30GHz Memory: 7,2 GiB of RAM Graphics Processor: Mesa Intel® HD Graphics 520 ADDITIONAL INFORMATION it happens in wayland and in X11
Created attachment 135310 [details] sub_pixel_rendering_combo-box_highlighting
Created attachment 135311 [details] correct_combo-box "Switch desktop on edge"'s combo-box which is an example of a correnct combo-box. with correct I mean consistent with the other combo-boxes.
Something is odd here. There's supposed to be a preview of the hinting style in the combobox items, but it's not visible in your screenshot.
Yes, previews of font hinting and sub-pixel rendering are missing on Wayland.
Created attachment 143258 [details] Correct behaviour on X11 with KDE 5.32.2
Created attachment 143259 [details] Incorrect behaviour on Wayland with KDE 5.32.2 [1]
Created attachment 143260 [details] Incorrect behaviour on Wayland with KDE 5.32.2 [2]
Still an issue, and definitely due to broken previews on X11. There are also several other issues, even with working previews: - The highlight colour is still wrong - The preview's backgrounds don't match the highlight or selection box dropdown colour - The highlight/click target for each option does not extend the full width of the box (even in X11), but rather just close to.
Created attachment 166680 [details] Incorrect behavior on Plasma 6.0.1 Also reproduced in a virtual machine with Neon unstable.
Merge request submitted: https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4076
Git commit 499e096d87d38ae4b9b194797520aaaf2450f33f by Fushan Wen, on behalf of Du Yijie. Committed on 16/03/2024 at 12:39. Pushed by fusionfuture into branch 'Plasma/6.0'. kcm_fonts: add subpixel and hinting previews This commit adds subpixel and hinting previews to kcm_fonts under Wayland. To properly support fractional scaling, PreviewRenderEngine now querys the scale from focus window, which returns the right scale for the currently active window (which should be the font settings page when the dropdown is clicked), rather than the primary screen which can only return the next higher integer scale. The DPI query is changed to query the active window's QScreen rather than X11. The naive reenablement has a bug where the preview image's size will grow larger than the bounding box of the preview text. It turns out that QImage::setDevicePixelRatio adds margins to the image, and removing that call solves the issue somehow. There are some minor display issues like the preview being blurry under fractional scales, but it at least works. Somehow. (cherry picked from commit be7af9da65375d2dc76962d5bd25b8a525f3174e) M +0 -3 kcms/fonts/previewimageprovider.cpp M +5 -7 kcms/fonts/previewrenderengine.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/499e096d87d38ae4b9b194797520aaaf2450f33f