tintedHighlight static method
Returns the FCS opinionated tinted highlight 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 tintedHighlight(Color overlay, Color tint, [double factor = 1]) {
// Starting kAlphaHighlight 0x14 = 20 = 8%, same as M3 opacity on hover.
final int usedAlpha = (kAlphaHighlight * factor).round().clamp(0x00, 0xFF);
// Tint color alpha blend into overlay kTintHighlight 0xA5 = 165 = 65%
return overlay.blendAlpha(tint, kTintHighlight).withAlpha(usedAlpha);
}