CAM API
  • CAM API
v20.0.1
Search Results for

    Show / Hide Table of Contents

    Interface ICamApiTheme

    Snapshot of the currently active UI theme of CAM application. All properties are read-only - plugins observe the theme chosen by the user, they do not switch it.

    Namespace: CAMAPI.Application
    Assembly: CAMAPI.Application.dll
    Syntax
    [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    [Guid("8A7C4F31-2E5D-4B91-9C64-1F3A8E92D7A5")]
    public interface ICamApiTheme

    Properties

    IsDark

    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
    bool IsDark { get; }
    Property Value
    Type Description
    bool

    Kind

    UI engine family the theme belongs to.

    Declaration
    TCamApiThemeKind Kind { get; }
    Property Value
    Type Description
    TCamApiThemeKind

    Name

    Theme variant name (e.g. "White", "Outer_Space"). Returns "Unknown" if the host has a ThemeIndex this SDK version does not know about.

    Declaration
    string Name { get; }
    Property Value
    Type Description
    string

    Methods

    GetColor(TCamApiColorKind)

    Declaration
    int GetColor(TCamApiColorKind ColorKind)
    Parameters
    Type Name Description
    TCamApiColorKind ColorKind
    Returns
    Type Description
    int
    In this article