Skip to main content

Style Library

Base:
UBlueprintFunctionLibrary
Type:
UNStyleLibrary
Header File:
NexusUI/Public/NStyleLibrary.h

A UBlueprintFunctionLibrary exposing the canonical NEXUS warning, error, and informational accent colors as BlueprintPure getters. Returns ENColor values rather than FLinearColor so downstream widgets can resolve the exact palette entry through FNColor at the last moment — useful when the same swatch needs to render in slightly different contexts.

What It Is​

  • Three Treatments: Each of Warning / Error / Info exposes an accent color, a paired foreground color (typically text/icons), and a paired background color.
  • Palette-Aware: All getters return ENColor enum values, leaving the final FLinearColor resolution to whoever consumes them.
  • Fixed Mappings: The values below are baked into the library; consumers who need different swatches should build their own palette function rather than overriding these.

Color Treatments​

TreatmentAccentForegroundBackground
WarningNC_OrangeNC_WhiteNC_Orange
ErrorNC_RedNC_WhiteNC_Red
InfoNC_BlueDarkNC_WhiteNC_BlueDark

UFunctions​

All functions live in the NEXUS|User Interface|Style category and are BlueprintPure.

Warning​

  • GetWarningColor() — returns the accent.
  • GetWarningForegroundColor() — returns the paired foreground.
  • GetWarningBackgroundColor() — returns the paired background.

Error​

  • GetErrorColor() — returns the accent.
  • GetErrorForegroundColor() — returns the paired foreground.
  • GetErrorBackgroundColor() — returns the paired background.

Info​

  • GetInfoColor() — returns the accent.
  • GetInfoForegroundColor() — returns the paired foreground.
  • GetInfoBackgroundColor() — returns the paired background.