Class TextModeThemeBackground
Colors a UI graphic, such as the image behind a TextMode view, with a theme's background color, and keeps it in step with theme changes and the display inversion.
Inherited Members
Namespace: Scylla.TextMode
Assembly: ScyllaTextMode.dll
Syntax
[DisallowMultipleComponent]
[AddComponentMenu("Scylla/TextMode/TextMode Theme Background")]
public sealed class TextModeThemeBackground : MonoBehaviour
Remarks
Add it next to an Image or another Graphic. While the component is enabled
it sets the graphic's color from ColorTheme: the project theme set on the
TextMode configuration, a theme named in ThemeName, or the fixed
Color. The color is passed through
DisplayColor(Color), so it inverts together with the grid.
In Edit mode the graphic keeps the color it was given.
The TextMode Wizard adds one to the background it creates behind a view.
Properties
Color
Gets or sets the background color used when ColorTheme is None.
Declaration
public Color Color { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
ColorTheme
Gets or sets where the background color comes from.
Declaration
public TextModeTerminalColorTheme ColorTheme { get; set; }
Property Value
| Type | Description |
|---|---|
| TextModeTerminalColorTheme |
ThemeName
Gets or sets the theme whose background color is used when ColorTheme is Own.
Declaration
public string ThemeName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |