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

Marco Martin <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/fram
                   |                            |eworks/kirigami/-/commit/3c
                   |                            |8de8d17dd16dd97866576adbdb8
                   |                            |456840fc1cf

--- Comment #16 from Marco Martin <[email protected]> ---
Git commit 3c8de8d17dd16dd97866576adbdb8456840fc1cf by Marco Martin, on behalf
of Arjen Hiemstra.
Committed on 17/06/2026 at 07:24.
Pushed by mart into branch 'master'.

primitives: Base Icon's node size on icon size, not item size

To avoid artifacts, we need to make sure we try as best as possible to
match the rendered geometry to texture size. Any deviation results in
the GPU having to do interpolation on the texture which can lead to
artifacts like blurriness.

Since we already calculate the expected size we paint at in
updatePaintedSize(), we can use that value as size and only need to
center the resulting geometry. The shader will then take care of
ensuring we don't end up at fractional pixels.
Related: bug 518041, bug 519129, bug 408215

M  +4    -16   src/primitives/icon.cpp

https://invent.kde.org/frameworks/kirigami/-/commit/3c8de8d17dd16dd97866576adbdb8456840fc1cf

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

Reply via email to