0.9.1-alpha.13
Alpha@xaui/native@0.9.1-alpha.13
Patch Changes
-
18b3fd8: A pressed fill now moves one way: towards the ink of the mode.
accentPressed,successPressed,warningPressedanddangerPressedmix towardsforegroundinstead of the variant's own text colour. That text is picked for contrast, so its lightness followed the fill's and took the direction with it:#9333eacarries near-white text and lightened under the finger in light mode, while#c084fccarries dark text and darkened in dark mode. Same control, opposite gesture, and nobody had decided it.Now
#9333ea → #8533d3in light and#c084fc → #c691fdin dark — darker in light, lighter in dark — and the label's contrast rises in both modes instead of falling in one. The neutral fills already worked this way, sincedefaultForegroundandsurfaceForegroundare the mode's ink; only the four saturated intents ever flipped.deriveTintfollows the same rule, so a rawcolorbehaves like a token under the finger as much as it does at rest.Visible on every filled control, which today means the
Button.