tintedDisable static method

Color tintedDisable(
  1. Color overlay,
  2. Color tint
)

Returns the FCS opinionated tinted disabled color on an overlay color.

Typically the primary color is the color used as tint base. The tint effect is different for light and dark mode.

Implementation

static Color tintedDisable(Color overlay, Color tint) =>
    // Tint color alpha blend into overlay #66=40%
    // Opacity of result #61=38%, same as M3 opacity on disable.
    overlay.blendAlpha(tint, kTintDisabled).withAlpha(kAlphaDisabled);