({
theme,
checkedColor,
disabled,
}: {
theme: InternalTheme;
checkedColor: string;
disabled?: boolean;
})
| 43 | }; |
| 44 | |
| 45 | const getAndroidRippleColor = ({ |
| 46 | theme, |
| 47 | checkedColor, |
| 48 | disabled, |
| 49 | }: { |
| 50 | theme: InternalTheme; |
| 51 | checkedColor: string; |
| 52 | disabled?: boolean; |
| 53 | }) => { |
| 54 | if (disabled) { |
| 55 | if (theme.isV3) { |
| 56 | return color(theme.colors.onSurface).alpha(0.16).rgb().string(); |
| 57 | } |
| 58 | return color(theme.colors.text).alpha(0.16).rgb().string(); |
| 59 | } |
| 60 | |
| 61 | return color(checkedColor).fade(0.32).rgb().string(); |
| 62 | }; |
| 63 | |
| 64 | const getAndroidControlColor = ({ |
| 65 | theme, |
no outgoing calls
no test coverage detected
searching dependent graphs…