fluent2WellWash function

Color fluent2WellWash(
  1. Fluent2ThemeData t,
  2. Fluent2Press press
)

What a part laid in a well paints over it in its press step (an unchosen segment on the segmented control's track): none at rest, then more ink, so the well steps darker under the pointer and darker again pressed. By day it then stands Fluent's neutralBackground1Pressed and neutralBackground3Pressed steps from white (12% and 16%); by night the well steps darker too, toward black (Fluent lifts its dark hover back to the card's own grey, where the well would vanish).

Implementation

Color fluent2WellWash(Fluent2ThemeData t, Fluent2Press press) =>
    t.brightness == Brightness.dark
    ? press.pick(
        const Color(0x00000000),
        const Color(0x4D000000),
        const Color(0x80000000),
        const Color(0x00000000),
      )
    : press.pick(
        const Color(0x00000000),
        const Color(0x0B000000),
        const Color(0x17000000),
        const Color(0x00000000),
      );