({
theme,
checked,
disabled,
checkedColor,
uncheckedColor,
}: {
theme: InternalTheme;
checked: boolean;
checkedColor: string;
uncheckedColor: string;
disabled?: boolean;
})
| 62 | }; |
| 63 | |
| 64 | const getAndroidControlColor = ({ |
| 65 | theme, |
| 66 | checked, |
| 67 | disabled, |
| 68 | checkedColor, |
| 69 | uncheckedColor, |
| 70 | }: { |
| 71 | theme: InternalTheme; |
| 72 | checked: boolean; |
| 73 | checkedColor: string; |
| 74 | uncheckedColor: string; |
| 75 | disabled?: boolean; |
| 76 | }) => { |
| 77 | if (disabled) { |
| 78 | if (theme.isV3) { |
| 79 | return theme.colors.onSurfaceDisabled; |
| 80 | } |
| 81 | return theme.colors.disabled; |
| 82 | } |
| 83 | |
| 84 | if (checked) { |
| 85 | return checkedColor; |
| 86 | } |
| 87 | return uncheckedColor; |
| 88 | }; |
| 89 | |
| 90 | export const getAndroidSelectionControlColor = ({ |
| 91 | theme, |
no outgoing calls
no test coverage detected
searching dependent graphs…