# SearchOrbView.Colors

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/leanback/widget/SearchOrbView.Colors "View this page in Java")

<br />

```
class SearchOrbView.Colors
```

<br />

*** ** * ** ***

A set of colors used to display the search orb.

## Summary

|                                                                                                                                                                                                                                                                                                                                                               ### Public constructors                                                                                                                                                                                                                                                                                                                                                               |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Colors](https://developer.android.com/reference/kotlin/androidx/leanback/widget/SearchOrbView.Colors#Colors(int))`(color: @`[ColorInt](https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Constructs a color set using the given color for the search orb.                                                                                                                                                                                                                                                                                                                                                                              |
| [Colors](https://developer.android.com/reference/kotlin/androidx/leanback/widget/SearchOrbView.Colors#Colors(int,int))`(color: @`[ColorInt](https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, brightColor: @`[ColorInt](https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Constructs a color set using the given colors for the search orb.                                                                                                                                                                                  |
| [Colors](https://developer.android.com/reference/kotlin/androidx/leanback/widget/SearchOrbView.Colors#Colors(int,int,int))`(` ` color: @`[ColorInt](https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` brightColor: @`[ColorInt](https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` iconColor: @`[ColorInt](https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) `)` Constructs a color set using the given colors. |

|                                   ### Public functions                                    |
|-------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `java-static `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [getBrightColor](https://developer.android.com/reference/kotlin/androidx/leanback/widget/SearchOrbView.Colors#getBrightColor(int))`(color: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Computes a default brighter version of the given color. |

|                                                                          ### Public properties                                                                           |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `@`[ColorInt](https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [brightColor](https://developer.android.com/reference/kotlin/androidx/leanback/widget/SearchOrbView.Colors#brightColor()) A brighter version of the search orb used for animation. |
| `@`[ColorInt](https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [color](https://developer.android.com/reference/kotlin/androidx/leanback/widget/SearchOrbView.Colors#color()) The main color of the search orb.                                    |
| `@`[ColorInt](https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [iconColor](https://developer.android.com/reference/kotlin/androidx/leanback/widget/SearchOrbView.Colors#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)  

```
Colors(color: @ColorInt Int)
```

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

|                                                                                   Parameters                                                                                    |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------|
| `color: @`[ColorInt](https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The main search orb color. |

### Colors

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

```
Colors(color: @ColorInt Int, brightColor: @ColorInt Int)
```

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

|                                                                                      Parameters                                                                                       |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------|
| `color: @`[ColorInt](https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)       | The main search orb color.                               |
| `brightColor: @`[ColorInt](https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | 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)  

```
Colors(
    color: @ColorInt Int,
    brightColor: @ColorInt Int,
    iconColor: @ColorInt Int
)
```

Constructs a color set using the given colors.  

|                                                                                      Parameters                                                                                       |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------|
| `color: @`[ColorInt](https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)       | The main search orb color.                               |
| `brightColor: @`[ColorInt](https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | A brighter version of the search orb used for animation. |
| `iconColor: @`[ColorInt](https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)   | A color used to tint the search orb icon.                |

## Public functions

### getBrightColor

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

```
java-static fun getBrightColor(color: Int): Int
```

Computes a default brighter version of the given color.  

## Public properties

### brightColor

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

```
val brightColor: @ColorInt Int
```

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)  

```
val color: @ColorInt Int
```

The main color of the search orb.  

### iconColor

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

```
val iconColor: @ColorInt Int
```

A color used to tint the search orb icon.