https://bugs.kde.org/show_bug.cgi?id=527745

Filip Fila <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/oxygen/-/commit/1d023c58 |ma/oxygen/-/commit/b094d6a7
                   |a00cd05654d18df0961cd097940 |4d4e0a8c328cbf80cda3b9edaaf
                   |9ca6f                       |cf1b7

--- Comment #7 from Filip Fila <[email protected]> ---
Git commit b094d6a74d4e0a8c328cbf80cda3b9edaafcf1b7 by Filip Fila.
Committed on 29/10/2026 at 06:21.
Pushed by filipf into branch 'Plasma/6.8'.

kstyle: Fix glitchy lines in menus when fractional scaling is used

Oxygen's menu backgrounds have been drawn in a bit of weird way. They're
actually comprised of two backgrounds (one a bottom flat fill, the other top
one being a vertical gradient) that are stitched together at one point
(splitY).

What happens with fractional scaling? The two backgrounds don't quite land on
the right pixels and we get glitchy semi-transparent lines between them.

Instead of stiching two pieces togther, why not just draw a flat fill that
covers the whole menu, and then put a gradient on top of that? That way no seam
between the two can ever appear.

And that's what this patch does, along with also making the gradient pixmap
render according to the surface DPR.

FIXED-IN: 6.8.3


(cherry picked from commit 1d023c58a00cd05654d18df0961cd0979409ca6f)

9225aaf5 kstyle: Fix glitchy lines in menus when fractional scaling is used

Co-authored-by: Filip Fila <[email protected]>

M  +6    -5    kstyle/oxygenstylehelper.cpp

https://invent.kde.org/plasma/oxygen/-/commit/b094d6a74d4e0a8c328cbf80cda3b9edaafcf1b7

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to