Last update: https://crab.garden/@alice/110457636175445239
---
So now both AdwNavigationSplitView and AdwOverlaySplitView have landed.
The latter has had a few more last-minute changes, a notable one is that I completely dropped touchpad gesture support from it.
Unlike touchscreen swipes, touchpad swipes never worked well with it and sometimes were the reason people were disabling gestures altogether: opening sidebar on touchscreen was (and is) an edge swipe, which is not possible on touchpad, so instead opening sidebar is a swipe from anywhere.
Similarly, closing the sidebar was a swipe from the sidebar on touch or from anywhere on touchpad.
This means that e.g. Loupe had to do pretty nasty workarounds to prevent swipes from interfering with navigation, and that's not great.
So, touchpad swipes re gone, now the only remaining gestures are restricted to the sidebar/the edge where the sidebar is.
Meanwhile a bunch of properties have been renamed:
- swipe-to-open -> enable-show-gesture
- swipe-to-close -> enable-hide-gesture
- reveal-sidebar -> show-sidebar
- locked -> pin-sidebar
And :reveal-progress is gone with no replacement. If needed, we can always add it back later.
---
The sidebar size defaults have changed for both split views: the default max width has been reduced from 360sp to 280sp, and the default width fraction has been reduced from 0.3 to 0.25, so the defaults should work well for more apps now.
---
For AdwNavigationSplitView it's now possible to use the navigation.push action repeatedly when it's not collapsed (I don't want to say expanded because GTK uses that term for another thing), specifically for pushing content when it's already pushed - then the action will just no-op instead of printing a critical about the duplicate page.
The intention behind that critical was to match AdwNavigationView (where you cannot have the same page twice in the navigation stack), but it doesn't work very well in practice - the primary use case for this action is a sidebar, and when it's not collapsed you're gonna be clicking rows when :show-content is already true, unlike when collapsed and you won't even see the sidebar in that case.
So - it no-ops now. Thanks @melix99 for feedback
---
And that's it. The next steps will be to get rid of leaflet/flap/etc mentions all over docs, then deprecate old stuff.
Alice :queercat_trans: (@[email protected])
Content warning: libadwaita updates, long