M-Files UI Extensibility Framework
SetTheme Method
IShellListing Interface : SetTheme Method

The theme object specifies the icons and colors of the search pane.

The color can be specified either as a RGB code as a number (note the little-endian byte order), or HTML-style color reference (like "#23ff33"). Empty string or string "default" sets the default color.

The icon file must be specified as a path to the icon file in the application folder. The icon file must be 32-bit .bmp or .png file. Icon dimensions should be 16x16. Pass empty string to restore the default icon.

Supported members:

Description
 Changes the theme of the shell listing.
Syntax
Visual Basic
Public Sub SetTheme( _
   ByVal theme As Object _
) 
Parameters
theme

The theme object specifies the icons and colors of the search pane.

The color can be specified either as a RGB code as a number (note the little-endian byte order), or HTML-style color reference (like "#23ff33"). Empty string or string "default" sets the default color.

The icon file must be specified as a path to the icon file in the application folder. The icon file must be 32-bit .bmp or .png file. Icon dimensions should be 16x16. Pass empty string to restore the default icon.

Supported members:

  • item_TextColor_Selected: The text color for selected item.
  • item_TextColor_HotSelected: The text color for selected item that is hot-highlighted, too.
  • item_TextColor_SelectedNoFocus: The text color for selected item when the listing control has no input focus.
  • item_BackgroundColor_Hot: The background color for hot-highlighted item. The hot-highlight effect is applied the item under the mouse cursor.
  • item_BackgroundColor_Selected:  The background color for selected item.
  • item_BackgroundColor_HotSelected: The background color for item that is selected and hot-highlighted.
  • item_BackgroundColor_SelectedNoFocus: The background color to be used with selected items when the listing has no input focus.
  • groupHeader_LabelColor: The color for listing group header labels.
  • groupHeader_LineColor: The color for decorative line in listing group header.
  • groupHeader_ButtonTextColor: The color for buttons in listing group headers.
  • groupHeader_ButtonEdgeHighlightColor: The color for button edges in listing group headers.
  • groupHeader_ButtonHighlightColor: The color for highlighted buttons in listing group headers.
  • groupHeader_BackgroundColor_Hot: The color for listing group header background when the group header is hot-highlighted.
  • groupHeader_BackgroundColor_Selected: The color for listing group header background when the group header is selected.
  • groupHeader_BackgroundColor_HotSelected: The color for listing group header background when the group header is selected and hot-highlighted.
  • backgroundImage: The listing background image. See the M-Files UI Extensibility Framework User's Guide for more details about the listing background image requirements.
Remarks
Minimum supported M-Files client: 9.0.3374.4
See Also

IShellListing Interface  | IShellListing Members