fluent2Well function

Color fluent2Well(
  1. Fluent2ThemeData t, [
  2. Fluent2Press press = Fluent2Press.rest
])

The fill of a neutral well: a segmented control's track, a filled tag or a filled circular tab at rest, a neutral tile, in its press step (out of use, fluent2WellDisabled).

Fluent draws these in neutralBackground3 (#F5F5F5 by day), a step that reads only on a white card: on the brand-tinted ground (background) it all but disappears, and a chosen thumb is left as one pill among loose words. So a well is laid over whatever stands under it, a step darker than its ground everywhere: by day Fluent's neutralBackground5 step from white (8% ink), by night Fluent's neutralBackground4 under a card (#292929 to #0E0E0E, 65% ink: half, Fluent's neutralBackground3 step, stood only 1.14:1 on the warmer presets' tinted night page, where grounds this dark crowd together). On a card it is Fluent's grey; on the page, a card or the desktop layer it stands at least 1.15:1 from the ground. Under the pointer and pressed it takes fluent2WellWash over it.

Implementation

Color fluent2Well(
  Fluent2ThemeData t, [
  Fluent2Press press = Fluent2Press.rest,
]) {
  final rest = t.brightness == Brightness.dark
      ? const Color(0xA6000000)
      : const Color(0x14000000);
  return Color.alphaBlend(fluent2WellWash(t, press), rest);
}