RWT Theming Reference > ToolBar

## ToolBar

Tool bar controls

### Available CSS Properties

Properties that can be defined for this element:

- background-color

  Background color for tool bar

- background-image

  Background image for tool bar

- border

  The border that is drawn around tool bars.

- border-bottom

  The bottom side border for tool bars.

- border-left

  The left side border for tool bars.

- border-radius

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

- border-right

  The right side border for tool bars.

- border-top

  The top side border for tool bars.

- color

  Text color for tool bar

- font

  Font for tool bar

- opacity

  The opacity of the tool bar. A value between 0 and 1.

- padding

  Padding (inner distance) for tool bar

- spacing

  Spacing between the tool items

### Applicable SWT Styles

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

- [BORDER]

  Applies when style BORDER is set

- [FLAT]

  Applies when style FLAT is set

- [VERTICAL]

  Applies when style VERTICAL is set

### Applicable States

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

- :disabled

  Applies to disabled tool bars

## ToolItem

Items of ToolBar controls

### Available CSS Properties

Properties that can be defined for this element:

- animation

  Supports animations-types "hoverIn" and "hoverOut". Others are ignored.

- background-color

  Background color for tool bar items

- background-image

  Background image for tool bar items

- border

  The border that is drawn around tool bar items.

- border-bottom

  The bottom side border for tool items.

- border-left

  The left side border for tool items.

- border-radius

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

- border-right

  The right side border for tool items.

- border-top

  The top side border for tool items.

- color

  Text color for tool bar items

- opacity

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

- padding

  Padding (inner distance) for tool bar items.

- spacing

  Spacing between the text and icon

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

- [FLAT]

  Applies when style FLAT is set on the parent ToolBar.

- [RIGHT_TO_LEFT]

  Indicates that the tool bar is oriented right to left.

- [VERTICAL]

  Applies when style VERTICAL is set on the parent ToolBar.

### Applicable States

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

- :disabled

  Applies to disabled tool items.

- :first

  Applies to the first tool item.

- :hover

  Applies on mouse over.

- :last

  Applies to the last tool item.

- :pressed

  Applies while the ToolItem is pressed.

- :selected

  Applies while the ToolItem is selected (CHECK of RADIO style).

## ToolItem-Separator

ToolItems with SEPARATOR style

### Available CSS Properties

Properties that can be defined for this element:

- width

  The width of the Separator

### Applicable SWT Styles

none

### Applicable States

none

## ToolItem-DropDownIcon

The icon displayed on ToolItem with DROPDOWN style

### Available CSS Properties

Properties that can be defined for this element:

- background-image

  The icon

- border

  Border for the line separating the dropDown-icon.

- border-bottom

  The bottom side border for separating line.

- border-left

  The left side border for separating line.

- border-right

  The right side border for separating line.

- border-top

  The top side border for separating line.

### 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 tool items.

- :hover

  Applies on mouse over.

- :pressed

  Applies while the ToolItem is pressed.

- :selected

  Applies while the ToolItem is selected (CHECK of RADIO style).