Class ThemeHelper
Extension methods over ICamApiTheme. Plugins normally
obtain the theme via appCom.Theme().
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class ThemeHelper
Methods
GetColor(ComWrapper<ICamApiTheme>, TCamApiColorKind)
Read color value (TColor as integer, BGR layout) for the
requested palette slot.
Declaration
public static int GetColor(this ComWrapper<ICamApiTheme> themeCom, TCamApiColorKind colorKind)
Parameters
Returns
IsDark(ComWrapper<ICamApiTheme>)
True if the active theme uses a dark background palette.
Cannot be derived from Kind alone - a single Kind may have
both dark and light variants.
Declaration
public static bool IsDark(this ComWrapper<ICamApiTheme> themeCom)
Parameters
Returns
Kind(ComWrapper<ICamApiTheme>)
UI engine family the theme belongs to.
Declaration
public static TCamApiThemeKind Kind(this ComWrapper<ICamApiTheme> themeCom)
Parameters
Returns
Name(ComWrapper<ICamApiTheme>)
Theme variant name (e.g. "White", "Outer_Space"). "Unknown" if the
host's ThemeIndex is outside the set known to this SDK version.
Declaration
public static string Name(this ComWrapper<ICamApiTheme> themeCom)
Parameters
Returns