({ theme, disabled }: BaseProps)
| 405 | }; |
| 406 | |
| 407 | const getFlatBackgroundColor = ({ theme, disabled }: BaseProps) => { |
| 408 | if (theme.isV3) { |
| 409 | if (disabled) { |
| 410 | return color(theme.colors.onSurface).alpha(0.04).rgb().string(); |
| 411 | } else { |
| 412 | return theme.colors.surfaceVariant; |
| 413 | } |
| 414 | } |
| 415 | |
| 416 | if (disabled) { |
| 417 | return undefined; |
| 418 | } |
| 419 | |
| 420 | return theme.dark |
| 421 | ? color(theme.colors?.background).lighten(0.24).rgb().string() |
| 422 | : color(theme.colors?.background).darken(0.06).rgb().string(); |
| 423 | }; |
| 424 | |
| 425 | const getFlatUnderlineColor = ({ |
| 426 | theme, |
no outgoing calls
no test coverage detected
searching dependent graphs…