fluent2RowFill function
Color
fluent2RowFill(
- Fluent2Colors c,
- Fluent2Press press, {
- required bool chosen,
- required Color resting,
The fill under a list row in press: the brand's subtle fill while it is
chosen, else the neutral fill under the pointer and the press
(resting at rest).
Implementation
Color fluent2RowFill(
Fluent2Colors c,
Fluent2Press press, {
required bool chosen,
required Color resting,
}) => chosen && press != Fluent2Press.disabled
? press.pick(
c.brandBackground2,
c.brandBackground2Hover,
c.brandBackground2Pressed,
c.brandBackground2,
)
: press.pick(
resting,
c.neutralBackground1Hover,
c.neutralBackground1Pressed,
resting,
);