RWT Theming Reference > Menu

## Menu

Menus

### Available CSS Properties

Properties that can be defined for this element:

- animation

  Supports animations-types "slideIn" and "slideOut". Others are ignored.

- background-color

  Background color

- background-image

  Background image or gradient

- border

  Menu border

- border-radius

  Border radius. The border radius has no effect if an enhanced border, like "inset" or "outset" is used.

- box-shadow

  The shadow behind the menu.

- color

  Menu text color

- font

  Menu font

- opacity

  The opacity of the menu. A value between 0 and 1.

- padding

  Space between border and text / image

### Applicable SWT Styles

none

### Applicable States

Widget states that can be referred to in a selector for this element (as CSS pseudo-classes):

- :disabled

  Applies to disabled menus.

## MenuItem

Menu items

### Available CSS Properties

Properties that can be defined for this element:

- background-color

  Background color

- background-image

  Background image

- color

  Menu item text color

- opacity

  The opacity of the item. A value between 0 and 1.

- padding

  Padding (inner distance) for menu items.

- text-shadow

  Shadow for text.

### Applicable SWT Styles

SWT style flags that can be referred to in a selector for this element (as CSS attributes):

- [CASCADE]

  Style constant for cascade menu item behavior.

- [CHECK]

  Style constant for check box menu item behavior.

- [PUSH]

  Style constant for push menu item behavior.

- [RADIO]

  Style constant for radio button menu item behavior.

- [SEPARATOR]

  Style constant for separator menu item behavior.

### Applicable States

Widget states that can be referred to in a selector for this element (as CSS pseudo-classes):

- :disabled

  Applies to disabled menu items.

- :hover

  On mouse over

- :onMenuBar

  Applies to menu items in the menu bar.

- :pressed

  On mouse down and open submenu. Only for menu-bars.

## MenuItem-CheckIcon

Icon of the checkbox. Applies when the MenuItem has a SWT.CHECK style flag.

### Available CSS Properties

Properties that can be defined for this element:

- background-image

  The icon image. The maximum size of the image should be 16 x 16 pixels.

### Applicable SWT Styles

none

### Applicable States

Widget states that can be referred to in a selector for this element (as CSS pseudo-classes):

- :disabled

  Applies when the menu is disabled.

## MenuItem-RadioIcon

Icon of the radio-button. Applies when the MenuItem has a SWT.RADIO style flag.

### Available CSS Properties

Properties that can be defined for this element:

- background-image

  The icon image. The maximum size of the image should be 16 x 16 pixels.

### Applicable SWT Styles

none

### Applicable States

Widget states that can be referred to in a selector for this element (as CSS pseudo-classes):

- :disabled

  Applies when the menu is disabled.

## MenuItem-CascadeIcon

The cascade icon. Applies when the MenuItem has a SWT.CASCADE style flag.

### Available CSS Properties

Properties that can be defined for this element:

- background-image

  The icon image. The maximum size of the image should be 16 x 16 pixels.

### Applicable SWT Styles

none

### Applicable States

Widget states that can be referred to in a selector for this element (as CSS pseudo-classes):

- :disabled

  Applies when the menu is disabled.