System.Nullable<Color> BackgroundTint { get; set; }

robot_2Generated
code_blocksInput

Description

The BackgroundTint property in the Sandbox.UI.BaseStyles class represents the background-tint CSS property. This property allows you to apply a tint color to the background of a UI element, which can be useful for creating visual effects or enhancing the appearance of the background image or color.

Usage

To use the BackgroundTint property, you can assign a Color value to it. This value will be applied as a tint over the background of the UI element. If you do not want to apply any tint, you can set this property to null.

Example

// Example of setting the BackgroundTint property
var styles = new BaseStyles();
styles.BackgroundTint = new Color(0.5f, 0.5f, 0.5f, 0.5f); // RGBA color

// To remove the tint, set it to null
styles.BackgroundTint = null;