Skip to content

Android: Ti.UI.Color parity #13272

@drauggres

Description

@drauggres

iOS

  • For semantic colors (defined in semantic.colors.json) Ti.UI.fetchSemanticColor returns Ti.UI.Color instance.
  • For "system" colors (standard colors) Ti.UI.fetchSemanticColor returns Ti.UI.Color instance.
  • Ti SDK supports passing Ti.UI.Color instances for component properties.

Android

  • For semantic colors (defined in semantic.colors.json) Ti.UI.fetchSemanticColor returns string: ti.semantic.color:dark=<ColorString>;light=<ColorString>.
    Must return a Ti.UI.Color instance.
  • For "system" colors (Ti.Android.R.color) Ti.UI.fetchSemanticColor returns string: @color/${colorName}.
    Must return a Ti.UI.Color instance.
  • Passing Ti.UI.Color instances for component properties is not supported.
    Ti.UI.Color must be supported for any color-related properties.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions