tintedFocused static method
Returns the FCS opinionated tinted focus 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 tintedFocused(Color overlay, Color tint, [double factor = 1]) {
// Starting kAlphaFocus 0x1F = 31 = 12.16%, same as M3 opacity on focus.
final int usedAlpha = (kAlphaFocused * factor).round().clamp(0x00, 0xFF);
// Tint color alpha blend into overlay kTintFocus 0xB2 = 178 = 70%.
return overlay.blendAlpha(tint, kTintFocus).withAlpha(usedAlpha);
}