    

 ## On this page

  

 

 # `IMechanicalTheme`

 Last update: 16.07.2025 

<a id="ansys.mechanical.stubs.v242.Ansys.Mechanical.UI.Interfaces.IMechanicalTheme"></a>

#### *class* Ansys.Mechanical.UI.Interfaces.IMechanicalTheme

Bases: [`object`](https://docs.python.org/3/library/functions.html#object)

IMechanicalTheme interface.

<a id="overview"></a>

## Overview

### Properties

NameDescription[`ColorPalette`](#IMechanicalTheme.ColorPalette)Palette object, which provides an entry point to get Mechnical UI’s theme colors represented as Ansys.Utilities.Color objects[`HexadecimalPalette`](#IMechanicalTheme.HexadecimalPalette)Palette object, which provides an entry point to get Mechnical UI’s theme colors represented in Hexadecimal. ei. #FFFFFF[`IntPalette`](#IMechanicalTheme.IntPalette)Palette object, which provides an entry point to get Mechnical UI’s theme colors represented as integers formatted as BGR[`Name`](#IMechanicalTheme.Name)The name of the theme as an enum value.<a id="property-detail"></a>

## Property detail

<a id="IMechanicalTheme.ColorPalette"></a>

### *property* IMechanicalTheme.ColorPalette *: Ansys.Mechanical.UI.Palette | [None](https://docs.python.org/3/library/constants.html#None)*

Palette object, which provides an entry point to get Mechnical UI’s theme colors represented as Ansys.Utilities.Color objects

<a id="IMechanicalTheme.HexadecimalPalette"></a>

### *property* IMechanicalTheme.HexadecimalPalette *: Ansys.Mechanical.UI.Palette | [None](https://docs.python.org/3/library/constants.html#None)*

Palette object, which provides an entry point to get Mechnical UI’s theme colors represented in Hexadecimal. ei. #FFFFFF

<a id="IMechanicalTheme.IntPalette"></a>

### *property* IMechanicalTheme.IntPalette *: Ansys.Mechanical.UI.Palette | [None](https://docs.python.org/3/library/constants.html#None)*

Palette object, which provides an entry point to get Mechnical UI’s theme colors represented as integers formatted as BGR

<a id="IMechanicalTheme.Name"></a>

### *property* IMechanicalTheme.Name *: [Ansys.Mechanical.UI.Enums.ThemeName](../Enums/ThemeName.md#ansys.mechanical.stubs.v242.Ansys.Mechanical.UI.Enums.ThemeName) | [None](https://docs.python.org/3/library/constants.html#None)*

The name of the theme as an enum value.