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

Marco Martin <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
      Latest Commit|                            |https://invent.kde.org/fram
                   |                            |eworks/kirigami/-/commit/5f
                   |                            |4737a674db84e4f34204f05cef8
                   |                            |b3a4ac1e5be
             Status|ASSIGNED                    |RESOLVED

--- Comment #9 from Marco Martin <[email protected]> ---
Git commit 5f4737a674db84e4f34204f05cef8b3a4ac1e5be by Marco Martin.
Committed on 15/10/2025 at 10:10.
Pushed by mart into branch 'master'.

Make Separator always perfectly pixel-aligned

Separator is the component which is the most important is always exactly
aligned to the  pixel grid, even with fractional scaling (or inside
Flickables that have a non integer contentY)

Without antialiasing the line will be sometimes one pixel, sometimes two

With antialiasing they will often look blurry and with an apparent different
color,
depending how much sharp is rendered in that particular position

Use an internal Rectangle that has size adjusted in
order to fall exactly on the pixel grid

It needs to use an internal one because just adjusting the size of the
external rectangle, sometimes is still misaligned when the separator
has vertical center anchors, such as in the listview section headers

M  +1    -1    src/controls/ContextDrawer.qml
M  +1    -1    src/controls/Page.qml
M  +3    -3   
src/controls/private/globaltoolbar/PageRowGlobalToolBarStyleGroup.qml
M  +1    -1    src/controls/private/globaltoolbar/PageRowGlobalToolBarUI.qml
M  +3    -0    src/layouts/columnview.cpp
M  +2    -0    src/primitives/CMakeLists.txt
M  +24   -12   src/primitives/Separator.qml
A  +131  -0    src/primitives/alignedsizeattached.cpp     [License:
LGPL(v2.0+)]
A  +90   -0    src/primitives/alignedsizeattached.h     [License: LGPL(v2.0+)]
M  +4    -4    src/templates/AbstractApplicationHeader.qml

https://invent.kde.org/frameworks/kirigami/-/commit/5f4737a674db84e4f34204f05cef8b3a4ac1e5be

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

Reply via email to