RWT Theming Reference > Shell

## Shell

SWT Shells (the window in SWT).

### Available CSS Properties

Properties that can be defined for this element:

- animation

  Animation that is triggered on emergence and disappearance of a Shell. Supported animation types are "flyInTop", "flyInBottom", "flyInRight", "flyInLeft", "flyOutTop", "flyOutBottom", "flyOutRight" and "flyOutLeft".

- background-color

  Background color for shells.

- background-image

  Background image or gradient.

- border

  Outer window 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 shell.

- opacity

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

- padding

  Padding around the shell's client area.

### Applicable SWT Styles

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

- [APPLICATION_MODAL]

  Indicates that the shell is modal.

- [BORDER]

  Indicates that the shell should have a border.

- [SHEET]

  Indicates that the shell should behave like a sheet window.

- [TITLE]

  Indicates that the shell should show it's title bar.

- [TOOL]

  Indicates that the shell should behave like a tool window.

### Applicable States

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

- :inactive

  Applies for all shells except the active shell.

- :maximized

  Applies for shells that are currently maximized.

## Shell-Titlebar

The window titlebar. Only visible when the TITLE style is set.

### Available CSS Properties

Properties that can be defined for this element:

- background-color

  Background color for the title bar. Maps to system colors SWT.COLOR_TITLE_BACKGROUND and SWT.COLOR_TITLE_INACTIVE_BACKGROUND, respectively.

- background-gradient-color

  Second background color for the title bar (currently ignored). Maps to system colors SWT.COLOR_TITLE_BACKGROUND_GRADIENT and SWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT, respectively.

- background-image

  Background image for the title bar.

- border

  Shell titlebar border.

- border-radius

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

- color

  Text color for the title bar.

- font

  Font for the title bar.

- height

  Height of the title bar.

- margin

  Margin for the title bar.

- padding

  Padding for the title bar.

- text-shadow

  Shadow for title bar text.

### Applicable SWT Styles

none

### Applicable States

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

- :inactive

  Applies for all shells except the active shell.

## Shell-MinButton

The minimize button of a window. Only visible when the MIN style flag is set.

### Available CSS Properties

Properties that can be defined for this element:

- background-image

  Image for the minimize button.

- margin

  Margin for the minimize button.

### Applicable SWT Styles

none

### Applicable States

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

- :hover

  Applies for shell buttons on mouse-over.

- :inactive

  Applies for shell buttons on inactive shells.

- :maximized

  Applies for shell buttons on maximized shells.

## Shell-MaxButton

The maximize/restore button of a window. Only visible when MAX style flag is set.

### Available CSS Properties

Properties that can be defined for this element:

- background-image

  Background image for the shell maximize/restore button.

- margin

  Margin for the shell maximize/restore button.

### Applicable SWT Styles

none

### Applicable States

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

- :hover

  Applies for shell buttons on mouse-over.

- :inactive

  Applies for shell buttons on inactive shells.

- :maximized

  Applies for shell buttons on maximized shells.

## Shell-CloseButton

The close button of a window. Only visible when CLOSE style flag is set.

### Available CSS Properties

Properties that can be defined for this element:

- background-image

  Background image for the shell close button.

- margin

  Margin for the shell close button.

### Applicable SWT Styles

none

### Applicable States

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

- :hover

  Applies for shell buttons on mouse-over.

- :inactive

  Applies for shell buttons on inactive shells.

- :maximized

  Applies for shell buttons on maximized shells.

## Shell-DisplayOverlay

An overlay that stays between (regarding the z-order) the display area and a modal shell when it is open.

### Available CSS Properties

Properties that can be defined for this element:

- animation

  Supports animations-types "fadeIn" and "fadeOut". Others are ignored.

- background-color

  Background color for the overlay.

- background-image

  Background image for the overlay.

- opacity

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

### Applicable SWT Styles

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

- [BORDER]

  Indicates that the modal shell has the BORDER style.

- [SHEET]

  Indicates that the modal shell has the SHEET style.

- [TITLE]

  Indicates that the modal shell has the TITLE style.

- [TOOL]

  Indicates that the modal shell has the TOOL style.

### Applicable States

none