public class RemoteColorScheme(
public val primary: RemoteColor,
public val primaryDim: RemoteColor,
public val primaryContainer: RemoteColor,
public val onPrimary: RemoteColor,
public val onPrimaryContainer: RemoteColor,
public val secondary: RemoteColor,
public val secondaryDim: RemoteColor,
public val secondaryContainer: RemoteColor,
public val onSecondary: RemoteColor,
public val onSecondaryContainer: RemoteColor,
public val tertiary: RemoteColor,
public val tertiaryDim: RemoteColor,
public val tertiaryContainer: RemoteColor,
public val onTertiary: RemoteColor,
public val onTertiaryContainer: RemoteColor,
public val surfaceContainerLow: RemoteColor,
public val surfaceContainer: RemoteColor,
public val surfaceContainerHigh: RemoteColor,
public val onSurface: RemoteColor,
public val onSurfaceVariant: RemoteColor,
public val outline: RemoteColor,
public val outlineVariant: RemoteColor,
public val background: RemoteColor,
public val onBackground: RemoteColor,
public val error: RemoteColor,
public val errorDim: RemoteColor,
public val errorContainer: RemoteColor,
public val onError: RemoteColor,
public val onErrorContainer: RemoteColor,
)
Represents the color scheme for the Wear Material 3 theme in a remote context.
A RemoteColorScheme holds RemoteColor parameters for a RemoteMaterialTheme, mapping to the standard Material Design 3 color roles for Wearables.
Color schemes are designed to be harmonious, ensure accessible text, and distinguish UI elements and surfaces from one another.
To learn more about color schemes, see Material Design Color System.
Secondary Constructors
public constructor(
colorScheme: ColorScheme = ColorScheme()
) : this(
primary = createNamedRemoteColor(PRIMARY, colorScheme.primary),
primaryDim = createNamedRemoteColor(PRIMARY_DIM, colorScheme.primaryDim),
primaryContainer = createNamedRemoteColor(PRIMARY_CONTAINER, colorScheme.primaryContainer),
onPrimary = createNamedRemoteColor(ON_PRIMARY, colorScheme.onPrimary),
onPrimaryContainer =
createNamedRemoteColor(ON_PRIMARY_CONTAINER, colorScheme.onPrimaryContainer),
secondary = createNamedRemoteColor(SECONDARY, colorScheme.secondary),
secondaryDim = createNamedRemoteColor(SECONDARY_DIM, colorScheme.secondaryDim),
secondaryContainer =
createNamedRemoteColor(SECONDARY_CONTAINER, colorScheme.secondaryContainer),
onSecondary = createNamedRemoteColor(ON_SECONDARY, colorScheme.onSecondary),
onSecondaryContainer =
createNamedRemoteColor(ON_SECONDARY_CONTAINER, colorScheme.onSecondaryContainer),
tertiary = createNamedRemoteColor(TERTIARY, colorScheme.tertiary),
tertiaryDim = createNamedRemoteColor(TERTIARY_DIM, colorScheme.tertiaryDim),
tertiaryContainer =
createNamedRemoteColor(TERTIARY_CONTAINER, colorScheme.tertiaryContainer),
onTertiary = createNamedRemoteColor(ON_TERTIARY, colorScheme.onTertiary),
onTertiaryContainer =
createNamedRemoteColor(ON_TERTIARY_CONTAINER, colorScheme.onTertiaryContainer),
surfaceContainerLow =
createNamedRemoteColor(SURFACE_CONTAINER_LOW, colorScheme.surfaceContainerLow),
surfaceContainer = createNamedRemoteColor(SURFACE_CONTAINER, colorScheme.surfaceContainer),
surfaceContainerHigh =
createNamedRemoteColor(SURFACE_CONTAINER_HIGH, colorScheme.surfaceContainerHigh),
onSurface = createNamedRemoteColor(ON_SURFACE, colorScheme.onSurface),
onSurfaceVariant = createNamedRemoteColor(ON_SURFACE_VARIANT, colorScheme.onSurfaceVariant),
outline = createNamedRemoteColor(OUTLINE, colorScheme.outline),
outlineVariant = createNamedRemoteColor(OUTLINE_VARIANT, colorScheme.outlineVariant),
background = createNamedRemoteColor(BACKGROUND, colorScheme.background),
onBackground = createNamedRemoteColor(ON_BACKGROUND, colorScheme.onBackground),
error = createNamedRemoteColor(ERROR, colorScheme.error),
errorDim = createNamedRemoteColor(ERROR_DIM, colorScheme.errorDim),
errorContainer = createNamedRemoteColor(ERROR_CONTAINER, colorScheme.errorContainer),
onError = createNamedRemoteColor(ON_ERROR, colorScheme.onError),
onErrorContainer = createNamedRemoteColor(ON_ERROR_CONTAINER, colorScheme.onErrorContainer),
)
Creates a RemoteColorScheme from a standard ColorScheme.
Colors are resolved using RemoteColor.createNamedRemoteColor with predefined canonical names (e.g., "WearM3.primary").
Parameters
| colorScheme | The local ColorScheme to retrieve colors from. |
Functions
copy
public fun copy(
primary: RemoteColor = this.primary,
primaryDim: RemoteColor = this.primaryDim,
primaryContainer: RemoteColor = this.primaryContainer,
onPrimary: RemoteColor = this.onPrimary,
onPrimaryContainer: RemoteColor = this.onPrimaryContainer,
secondary: RemoteColor = this.secondary,
secondaryDim: RemoteColor = this.secondaryDim,
secondaryContainer: RemoteColor = this.secondaryContainer,
onSecondary: RemoteColor = this.onSecondary,
onSecondaryContainer: RemoteColor = this.onSecondaryContainer,
tertiary: RemoteColor = this.tertiary,
tertiaryDim: RemoteColor = this.tertiaryDim,
tertiaryContainer: RemoteColor = this.tertiaryContainer,
onTertiary: RemoteColor = this.onTertiary,
onTertiaryContainer: RemoteColor = this.onTertiaryContainer,
surfaceContainerLow: RemoteColor = this.surfaceContainerLow,
surfaceContainer: RemoteColor = this.surfaceContainer,
surfaceContainerHigh: RemoteColor = this.surfaceContainerHigh,
onSurface: RemoteColor = this.onSurface,
onSurfaceVariant: RemoteColor = this.onSurfaceVariant,
outline: RemoteColor = this.outline,
outlineVariant: RemoteColor = this.outlineVariant,
background: RemoteColor = this.background,
onBackground: RemoteColor = this.onBackground,
error: RemoteColor = this.error,
errorDim: RemoteColor = this.errorDim,
errorContainer: RemoteColor = this.errorContainer,
onError: RemoteColor = this.onError,
onErrorContainer: RemoteColor = this.onErrorContainer,
): RemoteColorScheme
Returns a copy of this RemoteColorScheme, optionally overriding some of the values.