# AppBarWithSearchColors

Artifact: [androidx.compose.material3:material3](https://developer.android.com/jetpack/androidx/releases/compose-material3) [View Source](https://cs.android.com/search?q=file:androidx/compose/material3/SearchBar.kt+class:androidx.compose.material3.AppBarWithSearchColors) Common/AllAndroid/JVM
- Cmn

  ```
  @ExperimentalMaterial3Api
  class AppBarWithSearchColors
  ```

*** ** * ** ***

Represents the colors used by an `https://developer.android.com/reference/kotlin/androidx/compose/material3/AppBarWithSearch.composable#AppBarWithSearch(androidx.compose.material3.SearchBarState,kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.Function1,androidx.compose.ui.graphics.Shape,androidx.compose.material3.AppBarWithSearchColors,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.foundation.layout.PaddingValues,androidx.compose.foundation.layout.WindowInsets,androidx.compose.material3.SearchBarScrollBehavior)`.

See `https://developer.android.com/reference/kotlin/androidx/compose/material3/SearchBarDefaults#appBarWithSearchColors(androidx.compose.material3.SearchBarColors,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)` for the default implementation that follows Material specifications.

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/AppBarWithSearchColors#AppBarWithSearchColors(androidx.compose.material3.SearchBarColors,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)( searchBarColors: https://developer.android.com/reference/kotlin/androidx/compose/material3/SearchBarColors, appBarContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, appBarNavigationIconColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, appBarActionIconColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/AppBarWithSearchColors#AppBarWithSearchColors(androidx.compose.material3.SearchBarColors,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)( searchBarColors: https://developer.android.com/reference/kotlin/androidx/compose/material3/SearchBarColors, scrolledSearchBarContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, appBarContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, scrolledAppBarContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, appBarNavigationIconColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, appBarActionIconColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` | Cmn |

| ### Public functions |
|---|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/AppBarWithSearchColors#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/AppBarWithSearchColors#hashCode()()` | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/AppBarWithSearchColors#appBarActionIconColor()` the color used for the app bar action icons | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/AppBarWithSearchColors#appBarContainerColor()` the app bar container color. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/AppBarWithSearchColors#appBarNavigationIconColor()` the color used for the app bar navigation icon | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/AppBarWithSearchColors#scrolledAppBarContainerColor()` the app bar container color when content is scrolled. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/AppBarWithSearchColors#scrolledSearchBarContainerColor()` the container color of the search bar when content is scrolled | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/SearchBarColors` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/AppBarWithSearchColors#searchBarColors()` the color used for the `https://developer.android.com/reference/kotlin/androidx/compose/material3/SearchBar.composable#SearchBar(androidx.compose.material3.SearchBarState,kotlin.Function0,androidx.compose.ui.Modifier,androidx.compose.ui.graphics.Shape,androidx.compose.material3.SearchBarColors,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)` of this app bar. | Cmn |

## Public constructors

### AppBarWithSearchColors

Cmn

```
AppBarWithSearchColors(
    searchBarColors: SearchBarColors,
    appBarContainerColor: Color,
    appBarNavigationIconColor: Color,
    appBarActionIconColor: Color
)
```

### AppBarWithSearchColors

Cmn

```
AppBarWithSearchColors(
    searchBarColors: SearchBarColors,
    scrolledSearchBarContainerColor: Color,
    appBarContainerColor: Color,
    scrolledAppBarContainerColor: Color,
    appBarNavigationIconColor: Color,
    appBarActionIconColor: Color
)
```

| Parameters |
|---|---|
| `searchBarColors: https://developer.android.com/reference/kotlin/androidx/compose/material3/SearchBarColors` | the color used for the `https://developer.android.com/reference/kotlin/androidx/compose/material3/SearchBar.composable#SearchBar(androidx.compose.material3.SearchBarState,kotlin.Function0,androidx.compose.ui.Modifier,androidx.compose.ui.graphics.Shape,androidx.compose.material3.SearchBarColors,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)` of this app bar. |
| `scrolledSearchBarContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the container color of the search bar when content is scrolled |
| `appBarContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the app bar container color. Use `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color#Transparent()` to have no color. |
| `scrolledAppBarContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the app bar container color when content is scrolled. |
| `appBarNavigationIconColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the color used for the app bar navigation icon |
| `appBarActionIconColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the color used for the app bar action icons |

## Public functions

### equals

Cmn

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

Cmn

```
open fun hashCode(): Int
```

## Public properties

### appBarActionIconColor

Cmn

```
val appBarActionIconColor: Color
```

the color used for the app bar action icons

### appBarContainerColor

Cmn

```
val appBarContainerColor: Color
```

the app bar container color. Use `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color#Transparent()` to have no color.

### appBarNavigationIconColor

Cmn

```
val appBarNavigationIconColor: Color
```

the color used for the app bar navigation icon

### scrolledAppBarContainerColor

Cmn

```
val scrolledAppBarContainerColor: Color
```

the app bar container color when content is scrolled.

### scrolledSearchBarContainerColor

Cmn

```
val scrolledSearchBarContainerColor: Color
```

the container color of the search bar when content is scrolled

### searchBarColors

Cmn

```
val searchBarColors: SearchBarColors
```

the color used for the `https://developer.android.com/reference/kotlin/androidx/compose/material3/SearchBar.composable#SearchBar(androidx.compose.material3.SearchBarState,kotlin.Function0,androidx.compose.ui.Modifier,androidx.compose.ui.graphics.Shape,androidx.compose.material3.SearchBarColors,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)` of this app bar.