Class CCAppearance

Stores parameters that define the appearance for an application.

Constructors

Properties

activeElementColor: number = CCColor.blue

The color of active controls, such as selected buttons.

activeElementTextColor: number = CCColor.white

The color of text in active controls.

activeTitleBarColor: number = CCColor.yellow

The color of the title bar when the window is active.

inactiveElementColor: number = CCColor.lightGray

The color of inactive controls, such as normal buttons.

inactiveElementTextColor: number = CCColor.black

The color of text in inactive controls.

inactiveTitleBarColor: number = CCColor.lightGray

The color of the title bar when the window is inactive.

showTitleBar: boolean = true

Whether to show the title bar.

titleBarTextColor: number = CCColor.black

The color of text in the title bar.

windowColor: number = CCColor.white

The default color of the root view.

Methods

  • Returns the appearance corresponding to a system name if it exists.

    Parameters

    • name: string

      The name of the appearance to get

    Returns undefined | CCAppearance

    The appearance object, or nil if unknown