createThemedRemoteColor
Source set: Android
public fun RemoteColor.Companion.createThemedRemoteColor(
@ColorRes lightMode: Int,
@ColorRes darkMode: Int,
lightFallback: Color,
darkFallback: Color,
): RemoteColor
Creates a themed RemoteColor that resolves to different Android system colors in light and dark mode.
Parameters
| lightMode | The android.R.color resource ID for light mode. |
| darkMode | The android.R.color resource ID for dark mode. |
| lightFallback | The fallback Color value to use in light mode if the theme color cannot be resolved. |
| darkFallback | The fallback Color value to use in dark mode if the theme color cannot be resolved. |
Return
A RemoteColor representing the themed color.