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

The theme object specifies the icons and colors of the task 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 path is relative to the application folder (in where the appdef.xml is located). The icon file must be a .ico file. Normally the icon with size of 16x16 is used. With desktops with a high DPI setting (150% or more), the 24x24 icon is used if available.

The font size can be specified either as a absolute number, or as a string that descripe the relative size in percentages (like "135%"). 

Description
Sets the task pane theme. The theme specifies the text colors and icons on task pane.
Syntax
Visual Basic
Public Sub SetTheme( _
   ByVal theme As Object _
) 
Parameters
theme

The theme object specifies the icons and colors of the task 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 path is relative to the application folder (in where the appdef.xml is located). The icon file must be a .ico file. Normally the icon with size of 16x16 is used. With desktops with a high DPI setting (150% or more), the 24x24 icon is used if available.

The font size can be specified either as a absolute number, or as a string that descripe the relative size in percentages (like "135%"). 

  • groupHeader_TextColor: The text color for task pane group headers.
  • groupHeader_IconFileExpand: The icon file for collapsed group. I.e. the icon indicates a verb 'expand'.
  • groupHeader_IconFileCollapse: The icon file for expanded group. I.e. the icon indicates a verb 'collapse'.
  • groupHeader_FontSize: The font size for group header texts.
  • item_FontSize: The font size for group item texts.
  • item_TextColor: The text color for task pane group items.
  • item_HighlightTextColor: The text color for task pane group items when the item is highlighted.
  • item_HighlightBackgroundColor: The background color for task pane group items when the item is highlighted.
Remarks
Minimum supported M-Files client: 9.0.3374.4
See Also

ITaskPane Interface  | ITaskPane Members