[android-components](../../index.md) / [mozilla.components.browser.menu2.view](../index.md) / [MenuView](index.md) / [setStyle](./set-style.md)

# setStyle

`fun setStyle(style: `[`MenuStyle`](../../mozilla.components.concept.menu/-menu-style/index.md)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/menu2/src/main/java/mozilla/components/browser/menu2/view/MenuView.kt#L85)

Sets the background color for the menu view.

