Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Styling
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- USlateThemeManager
References
| Module | SlateCore |
| Header | /Engine/Source/Runtime/SlateCore/Public/Styling/StyleColors.h |
| Include | #include "Styling/StyleColors.h" |
Syntax
class USlateThemeManager : public UObject
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Applies the default dark theme as the active theme | ||
| void | ApplyTheme
(
FGuid ThemeId |
Applies a theme as the active theme | |
| bool | DoesThemeExist
(
const FGuid& ThemeID |
||
| FGuid | Duplicates the active theme | ||
| USlateThemeManager & | Get () |
||
| const FLinearColor & | GetColor
(
EStyleColor Color |
||
| FText | GetColorDisplayName
(
EStyleColor InColorId |
Gets a custom display name for a style color. This will be empty if no custom name was chosen | |
| const FStyleTheme & | |||
| const FGuid & | |||
| FString | |||
| FString | |||
| const TArray< FStyleTheme > & | GetThemes () |
||
| FString | |||
| void | Initializes default colors | ||
| bool | Returns true if the active theme is an engine-specific theme | ||
| bool | Returns true if the active theme is a project-specific theme | ||
| void | LoadThemes () |
Load all known themes from engine, project, and user directories | |
| FThemeChangedEvent & | Returns an event delegate that is executed when the themeID has changed. | ||
| void | RemoveTheme
(
FGuid ThemeId |
Removes a theme. | |
| void | ResetActiveColorToDefault
(
EStyleColor Color |
Resets an active color to the default color for the curerent theme | |
| void | SaveCurrentThemeAs
(
const FString& Filename |
Saves the current theme | |
| void | SetColorDisplayName
(
EStyleColor InColorId, |
Sets a custom display name for a style color | |
| void | SetCurrentThemeDisplayName
(
FText NewDisplayName |
Sets the display name for the current theme | |
| void | SetDefaultColor
(
EStyleColor InColorId, |
Sets a default color to be used as a fallback if no theme is loaded | |
| void | Validate that there is an active loaded theme |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FThemeChangedEvent |