({
theme,
checkedColor,
disabled,
}: {
theme: InternalTheme;
checkedColor: string;
disabled?: boolean;
})
| 145 | }; |
| 146 | |
| 147 | const getIOSRippleColor = ({ |
| 148 | theme, |
| 149 | checkedColor, |
| 150 | disabled, |
| 151 | }: { |
| 152 | theme: InternalTheme; |
| 153 | checkedColor: string; |
| 154 | disabled?: boolean; |
| 155 | }) => { |
| 156 | if (disabled) { |
| 157 | if (theme.isV3) { |
| 158 | return color(theme.colors.onSurface).alpha(0.16).rgb().string(); |
| 159 | } |
| 160 | return color(theme.colors.text).alpha(0.16).rgb().string(); |
| 161 | } |
| 162 | return color(checkedColor).fade(0.32).rgb().string(); |
| 163 | }; |
| 164 | |
| 165 | export const getSelectionControlIOSColor = ({ |
| 166 | theme, |
no outgoing calls
no test coverage detected
searching dependent graphs…