# SearchOrbView.Colors

Artifact: [androidx.leanback:leanback](https://developer.android.com/jetpack/androidx/releases/leanback) [View Source](https://cs.android.com/search?q=file:androidx/leanback/widget/SearchOrbView.java+class:androidx.leanback.widget.SearchOrbView.Colors) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

*** ** * ** ***


```
public class SearchOrbView.Colors
```

<br />

*** ** * ** ***

A set of colors used to display the search orb.

## Summary

| ### Public fields |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/ColorInt int` | `https://developer.android.com/reference/androidx/leanback/widget/SearchOrbView.Colors#brightColor()` A brighter version of the search orb used for animation. |
| `@https://developer.android.com/reference/androidx/annotation/ColorInt int` | `https://developer.android.com/reference/androidx/leanback/widget/SearchOrbView.Colors#color()` The main color of the search orb. |
| `@https://developer.android.com/reference/androidx/annotation/ColorInt int` | `https://developer.android.com/reference/androidx/leanback/widget/SearchOrbView.Colors#iconColor()` A color used to tint the search orb icon. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/leanback/widget/SearchOrbView.Colors#Colors(int)(@https://developer.android.com/reference/androidx/annotation/ColorInt int color)` Constructs a color set using the given color for the search orb. |
| `https://developer.android.com/reference/androidx/leanback/widget/SearchOrbView.Colors#Colors(int,int)(@https://developer.android.com/reference/androidx/annotation/ColorInt int color, @https://developer.android.com/reference/androidx/annotation/ColorInt int brightColor)` Constructs a color set using the given colors for the search orb. |
| `https://developer.android.com/reference/androidx/leanback/widget/SearchOrbView.Colors#Colors(int,int,int)( @https://developer.android.com/reference/androidx/annotation/ColorInt int color, @https://developer.android.com/reference/androidx/annotation/ColorInt int brightColor, @https://developer.android.com/reference/androidx/annotation/ColorInt int iconColor )` Constructs a color set using the given colors. |

| ### Public methods |
|---|---|
| `static int` | `https://developer.android.com/reference/androidx/leanback/widget/SearchOrbView.Colors#getBrightColor(int)(int color)` Computes a default brighter version of the given color. |

## Public fields

### brightColor

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
public @ColorInt int brightColor
```

A brighter version of the search orb used for animation.

### color

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
public @ColorInt int color
```

The main color of the search orb.

### iconColor

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
public @ColorInt int iconColor
```

A color used to tint the search orb icon.

## Public constructors

### Colors

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
public Colors(@ColorInt int color)
```

Constructs a color set using the given color for the search orb. Other colors are provided by the framework.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/ColorInt int color` | The main search orb color. |

### Colors

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
public Colors(@ColorInt int color, @ColorInt int brightColor)
```

Constructs a color set using the given colors for the search orb. Other colors are provided by the framework.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/ColorInt int color` | The main search orb color. |
| `@https://developer.android.com/reference/androidx/annotation/ColorInt int brightColor` | A brighter version of the search orb used for animation. |

### Colors

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
public Colors(
    @ColorInt int color,
    @ColorInt int brightColor,
    @ColorInt int iconColor
)
```

Constructs a color set using the given colors.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/ColorInt int color` | The main search orb color. |
| `@https://developer.android.com/reference/androidx/annotation/ColorInt int brightColor` | A brighter version of the search orb used for animation. |
| `@https://developer.android.com/reference/androidx/annotation/ColorInt int iconColor` | A color used to tint the search orb icon. |

## Public methods

### getBrightColor

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
public static int getBrightColor(int color)
```

Computes a default brighter version of the given color.