![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#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 } |
| #define ALLOW_THEMES WITH_EDITOR || IS_PROGRAM |
Themes are only allowed in the editor or standalone tools
| #define COLOR | ( | HexValue | ) | FLinearColor::FromSRGBColor(FColor::FromHex(HexValue)) |
|
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:
|
| User2 | |
| User3 | |
| User4 | |
| User5 | |
| User6 | |
| User7 | |
| User8 | |
| User9 | |
| User10 | |
| User11 | |
| User12 | |
| User13 | |
| User14 | |
| User15 | |
| User16 | |
| MAX | |