fix(qt): pin the artist jump nav bar and round it at the pane edge

The strip scrolled away with the body; the reference clamps it to the top.
Lifted out of the flow with a slot holding its place, using the reference's
clamp verbatim -- the formula must not add the viewport y or the scroll is
double-counted and the bar lifts ahead of the body mid-transition.

Pinned at the pane's top edge it then showed the square-corner defect already
fixed in Discover: Qt's clip is a rectangular scissor that ignores radius, and
the shell hides its bezel nubs while the dynamic background shows through the
corners, so a full-bleed child has to round itself. Driven off the live y, so
the rounding exists only while the bar is actually at the top -- rounded
corners in mid-page would be a notch with nothing behind them.

cc
This commit is contained in:
vicrodh committed 2026-08-13 23:10:40 -06:00
1 parent c2944db973
commit fda56f9ea2
2 files changed
+75 -16

No files matched your search

@@ -45,6 +45,21 @@ Rectangle {
/// Horizontal inset. 32 = the .slint's own padding for a full-bleed
/// mount; a host that already pads its column passes 0.
property real padH: 32
/// Top-corner rounding, for a host that PINS this bar to y=0 of the
/// content pane.
///
/// A full-bleed child sitting at the pane's top-left/right has to round
/// ITSELF: Qt's `clip` is a rectangular scissor that ignores `radius`, and
/// AppShell hides its bezel nubs while the dynamic background shows through
/// the corners — so the pane's own rounding cannot reach a child. Square
/// corners then poke out past the bezel, which is exactly what the owner
/// caught in Discover (`DiscoverBrowseView.qml:103`) and again here once
/// this bar became sticky.
///
/// The host must drive it from the PINNED state, not set it once: rounded
/// corners in mid-page, where the bar is surrounded by content on all
/// sides, are a notch out of the strip with nothing behind them.
property real topRadius: 0
signal tabClicked(string id)
signal searchEdited(string text)
@@ -54,6 +69,8 @@ Rectangle {
height: 44
color: root.barBg
topLeftRadius: root.topRadius
topRightRadius: root.topRadius
Rectangle {
x: 0