0.9.1-alpha.93
Alpha@xaui/native@0.9.1-alpha.93
Patch Changes
-
b8ef93d:
Pager— the indicator is one colour at two opacitiesThe dots were a pair of tokens: the current one from the variant, the rest from the neutral
defaultfill, which is whatCarouseldoes. A pair has to be chosen to contrast with itself, and it cannot be — measured in the DOM,tertiaryputsurfaceagainstdefault, which is#ffffffon#e4e4e7in light and two near-identical greys in dark. The one variant that exists for a pager over an image was the one whose indicator could not be read, in both colour modes.Every dot now takes the variant's one colour, the current one at full strength and the rest at
DOT_REST_OPACITY(0.3, exported). That cannot collapse whatever the variant, whichever the colour mode, and for any rawcolora caller invents — and it is what iOS's own page control does. 30% rather than 50%, because the dots are seven points across and at half strength a small mark reads as the current one seen through something rather than as a mark behind it.Three consequences:
secondaryis nowforegroundrather thandefaultForeground— the page's own ink, for an indicator that has to read as chrome.- A pager over a photograph is
color="#ffffff"rather thantertiary: a photograph is a photograph in both colour modes, andsurfaceflips with the theme. The doc saidtertiarywas the answer; it was not. PagerDotInkand the context'sdotInkare gone, along with the flatten that built them — there is no pair for a worklet to interpolate between, so the recipe'sdotis a plain style and the travel is anopacity.
Also adds a full-screen
Pagerverification to the demo, which is the case a section inside aScrollViewcannot show, and the one that surfaced this.