Bug 502260

Summary: Floating close button shows incorrectly when resizing
Product: [Frameworks and Libraries] frameworks-kirigami Reporter: David Edmundson <kde>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: notmart
Priority: NOR    
Version First Reported In: Master   
Target Milestone: Not decided   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Files showing the floating button

Description David Edmundson 2025-03-31 22:21:36 UTC
Created attachment 179899 [details]
Files showing the floating button

If we have an application with a sidebar that chooses to not show the sidebar when in a collapsed view, an incorrect floating X appears during the transition.

This X button would be used when a transient pop-out sidebar would be used, but that doesn't make sense when collapsing the sidebar when it wasn't showing previously.

I have attached a slow motion zip of images that shows the problem.
Comment 1 Bug Janitor Service 2025-04-07 13:42:47 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kirigami/-/merge_requests/1756
Comment 2 Marco Martin 2025-04-10 12:06:26 UTC
Git commit c2763d5246f8d2dd39308c90865e45ec88355b9a by Marco Martin.
Committed on 10/04/2025 at 12:06.
Pushed by mart into branch 'master'.

Polish drawer handle appear/disappear

tweak handle visibility and opacity to noever make it appear
and disappear brutally.
bind opacity of background to position when there is an handle anchor and
only show it on modal dialogs. It also stops flashing it
when it goes from modal to non modal and vice versa

M  +3    -1    src/controls/OverlayDrawer.qml
M  +16   -1    src/controls/templates/OverlayDrawer.qml

https://invent.kde.org/frameworks/kirigami/-/commit/c2763d5246f8d2dd39308c90865e45ec88355b9a