UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
StyleColors.h File Reference
#include "Containers/Array.h"
#include "Containers/UnrealString.h"
#include "CoreMinimal.h"
#include "HAL/Platform.h"
#include "Internationalization/Text.h"
#include "Math/Color.h"
#include "Misc/Guid.h"
#include "SlateColor.h"
#include "UObject/Object.h"
#include "UObject/ObjectMacros.h"
#include "UObject/UObjectGlobals.h"
#include "StyleColors.generated.h"

Go to the source code of this file.

Classes

struct  FStyleColorList
 
struct  FStyleTheme
 
class  USlateThemeManager
 
struct  FStyleColors
 

Macros

#define ALLOW_THEMES   WITH_EDITOR || IS_PROGRAM
 
#define COLOR(HexValue)   FLinearColor::FromSRGBColor(FColor::FromHex(HexValue))
 

Enumerations

enum class  EStyleColor : uint8 {
  Black , Background , Title , WindowBorder ,
  Foldout , Input , InputOutline , Recessed ,
  Panel , Header , Dropdown , DropdownOutline ,
  Hover , Hover2 , White , White25 ,
  Highlight , Primary , PrimaryHover , PrimaryPress ,
  Secondary , Foreground , ForegroundHover , ForegroundInverted ,
  ForegroundHeader , Select , SelectInactive , SelectParent ,
  SelectHover , Notifications , AccentBlue , AccentPurple ,
  AccentPink , AccentRed , AccentOrange , AccentYellow ,
  AccentGreen , AccentBrown , AccentBlack , AccentGray ,
  AccentWhite , AccentFolder , Warning , Error ,
  Success , User1 , User2 , User3 ,
  User4 , User5 , User6 , User7 ,
  User8 , User9 , User10 , User11 ,
  User12 , User13 , User14 , User15 ,
  User16 , MAX
}
 

Macro Definition Documentation

◆ ALLOW_THEMES

#define ALLOW_THEMES   WITH_EDITOR || IS_PROGRAM

Themes are only allowed in the editor or standalone tools

◆ COLOR

Enumeration Type Documentation

◆ EStyleColor

enum class EStyleColor : uint8
strong

Note: If you add another color here, you should update the Dark.json theme file in Engine\Content\Slate\Themes & FUMGColors in UMGCoreStyle.cpp for consistency

Enumerator
Black 
Background 
Title 
WindowBorder 
Foldout 
Input 
InputOutline 
Recessed 
Panel 
Header 
Dropdown 
DropdownOutline 
Hover 
Hover2 
White 
White25 
Highlight 
Primary 
PrimaryHover 
PrimaryPress 
Secondary 
Foreground 
ForegroundHover 
ForegroundInverted 
ForegroundHeader 
Select 
SelectInactive 
SelectParent 
SelectHover 
Notifications 
AccentBlue 
AccentPurple 
AccentPink 
AccentRed 
AccentOrange 
AccentYellow 
AccentGreen 
AccentBrown 
AccentBlack 
AccentGray 
AccentWhite 
AccentFolder 
Warning 
Error 
Success 
User1 

Only user colors should be below this line To use user colors:

  1. Set an unused user enum value below as the color value for an FSlateColor. E.g. FSlateColor MyCustomColor(EStyleColors::User1)
  2. Set the actual color. E.g USlateThemeManager::Get().SetDefaultColor(EStyleColor::User1, FLinearColor::White)
  3. Give it a display name if you want it to be configurable by editor users. E.g. UStyleColorTable::Get().SetColorDisplayName(EUserStyleColor::User1, "My Color Name")
User2 
User3 
User4 
User5 
User6 
User7 
User8 
User9 
User10 
User11 
User12 
User13 
User14 
User15 
User16 
MAX