RWT Theming Reference > Shell
Shell
SWT Shells (the window in SWT).
Available CSS Properties
Properties that can be defined for this element:
Applicable SWT Styles
SWT style flags that can be referred to in a selector for this element
(as CSS attributes):
Applicable States
Widget states that can be referred to in a selector for this element
(as CSS pseudo-classes):
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 : color definition
Background color for the title bar.
Maps to system colors SWT.COLOR_TITLE_BACKGROUND and
SWT.COLOR_TITLE_INACTIVE_BACKGROUND, respectively.
-
background-gradient-color : color definition
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 : image url
Background image for the title bar.
-
color : color definition
Text color for the title bar.
-
font : font definition
Font for the title bar.
-
height : dimension
Height of the title bar.
-
margin : box dimension
Margin for the title bar.
-
padding : box dimension
Padding for the title bar.
Applicable SWT Styles
none
Applicable States
Widget states that can be referred to in a selector for this element
(as CSS pseudo-classes):
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:
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:
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:
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.