({
theme,
iconColor,
customRippleColor,
}: {
theme: InternalTheme;
iconColor: string;
customRippleColor?: ColorValue;
})
| 128 | }; |
| 129 | |
| 130 | const getRippleColor = ({ |
| 131 | theme, |
| 132 | iconColor, |
| 133 | customRippleColor, |
| 134 | }: { |
| 135 | theme: InternalTheme; |
| 136 | iconColor: string; |
| 137 | customRippleColor?: ColorValue; |
| 138 | }) => { |
| 139 | if (customRippleColor) { |
| 140 | return customRippleColor; |
| 141 | } |
| 142 | if (theme.isV3) { |
| 143 | return color(iconColor).alpha(0.12).rgb().string(); |
| 144 | } |
| 145 | return color(iconColor).alpha(0.32).rgb().string(); |
| 146 | }; |
| 147 | |
| 148 | export const getIconButtonColor = ({ |
| 149 | theme, |
no outgoing calls
no test coverage detected
searching dependent graphs…