USlateThemeManager

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Styling/StyleColors.h

Include

#include "Styling/StyleColors.h"

Syntax

class USlateThemeManager : public UObject

Constructors

Name Description

Public function

USlateThemeManager()

Functions

Name Description

Public function

void

 

ApplyTheme

(
    FGuid ThemeId
)

Applies a theme as the active theme

Public function

FGuid

 

DuplicateActiveTheme()

Duplicates the active theme

Public function Static

USlateThemeM...

 

Get()

Public function

const FLinea...

 

GetColor

(
    EStyleColor Color
)

Public function Const

FText

 

GetColorDisplayName

(
    EStyleColor InColorId
)

Gets a custom display name for a style color. This will be empty if no custom name was chosen

Public function Const

const FStyle...

 

GetCurrentTheme()

Public function Const

FString

 

GetEngineThemeDir()

Public function Const

FString

 

GetProjectThemeDir()

Public function Const

const TArray...

 

GetThemes()

Public function Const

FString

 

GetUserThemeDir()

Public function

void

 

InitalizeDefaults()

Initializes default colors

Public function

void

 

LoadThemes()

Load all known themes from engine, project, and user directories

Public function

void

 

RemoveTheme

(
    FGuid ThemeId
)

Removes a theme.

Public function

void

 

ResetActiveColorToDefault

(
    EStyleColor Color
)

Resets an active color to the default color for the curerent theme

Public function

void

 

SaveCurrentThemeAs

(
    const FString& Filename
)

Saves the current theme

Public function

void

 

SetColorDisplayName

(
    EStyleColor InColorId,
    FText DisplayName
)

Sets a custom display name for a style color

Public function

void

 

SetCurrentThemeDisplayName

(
    FText NewDisplayName
)

Sets the display name for the current theme

Public function

void

 

SetDefaultColor

(
    EStyleColor InColorId,
    FLinearColor InColor
)

Sets a default color to be used as a fallback if no theme is loaded

Public function

void

 

ValidateActiveTheme()

Validate that there is an active loaded theme