Navigation
API > API/Runtime > API/Runtime/SlateCore
| Name | USlateThemeManager |
| Type | class |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Styling/StyleColors.h |
| Include Path | #include "Styling/StyleColors.h" |
Syntax
UCLASS (Config=EditorSettings, MinimalAPI)
class USlateThemeManager : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → USlateThemeManager
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
USlateThemeManager() |
Styling/StyleColors.h |
Classes
| Name | Remarks |
|---|---|
| FThemeChangedEvent |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ActiveColors | FStyleColorList | Styling/StyleColors.h |
|
|
| CurrentThemeId | FGuid | Styling/StyleColors.h |
|
|
| DefaultColors | FLinearColor | Styling/StyleColors.h | ||
| DefaultDarkTheme | FStyleTheme | Styling/StyleColors.h | ||
| ThemeChangedEvent | FThemeChangedEvent | Broadcasts whenever the theme changes | Styling/StyleColors.h | |
| Themes | TArray< FStyleTheme > | Styling/StyleColors.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ApplyDefaultTheme() |
Applies the default dark theme as the active theme | Styling/StyleColors.h | |
void ApplyTheme
(
FGuid ThemeId |
Applies a theme as the active theme | Styling/StyleColors.h | |
bool DoesThemeExist
(
const FGuid& ThemeID |
Styling/StyleColors.h | ||
FGuid DuplicateActiveTheme() |
Duplicates the active theme | Styling/StyleColors.h | |
bool ExportCurrentThemeTo
(
const FString& Filename |
Exports the current theme to the given filename. | Styling/StyleColors.h | |
const FLinearColor & GetColor
(
EStyleColor Color |
Styling/StyleColors.h | ||
FText GetColorDisplayName
(
EStyleColor InColorId |
Gets a custom display name for a style color. This will be empty if no custom name was chosen | Styling/StyleColors.h | |
const FStyleTheme & GetCurrentTheme() |
Styling/StyleColors.h | ||
const FGuid & GetCurrentThemeID() |
Styling/StyleColors.h | ||
FString GetEngineThemeDir() |
Styling/StyleColors.h | ||
FString GetProjectThemeDir() |
Styling/StyleColors.h | ||
const TArray< FStyleTheme > & GetThemes() |
Styling/StyleColors.h | ||
FString GetUserThemeDir() |
Styling/StyleColors.h | ||
void InitalizeDefaults() |
Initializes default colors | Styling/StyleColors.h | |
bool IsEngineTheme() |
Returns true if the active theme is an engine-specific theme | Styling/StyleColors.h | |
bool IsProjectTheme() |
Returns true if the active theme is a project-specific theme | Styling/StyleColors.h | |
void LoadThemes() |
Load all known themes from engine, project, and user directories | Styling/StyleColors.h | |
FThemeChangedEvent & OnThemeChanged() |
Returns an event delegate that is executed when the themeID has changed. | Styling/StyleColors.h | |
void RemoveTheme
(
FGuid ThemeId |
Removes a theme. | Styling/StyleColors.h | |
void ResetActiveColorToDefault
(
EStyleColor Color |
Resets an active color to the default color for the curerent theme | Styling/StyleColors.h | |
void SaveCurrentThemeAs
(
const FString& Filename |
Saves the current theme | Styling/StyleColors.h | |
void SetColorDisplayName
(
EStyleColor InColorId, |
Sets a custom display name for a style color | Styling/StyleColors.h | |
void SetCurrentThemeDisplayName
(
FText NewDisplayName |
Sets the display name for the current theme | Styling/StyleColors.h | |
void SetDefaultColor
(
EStyleColor InColorId, |
Sets a default color to be used as a fallback if no theme is loaded | Styling/StyleColors.h | |
void ValidateActiveTheme() |
Validate that there is an active loaded theme | Styling/StyleColors.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static USlateThemeManager & Get() |
Styling/StyleColors.h |