Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.UIEngine2.Modules.Palettes.PaletteHandler Class Reference

Detailed Description

API for handling of the ColorPalette content at runtime.

Entire palettes must be places in directory resources\palettes\.

A the first call loads the default_main and default_alt assets from resources and applies them to the ActiveMain and ActiveAlternative along with mentioning order.

In case of absent will ignore any color overriding.

Static Public Member Functions

static void Apply (ColorPalette palette)
 Applying a palette as main active one and update binded UI. More...
 
static void ApplyAsAlt (ColorPalette palette)
 Applying a palette as alternative active one and update binded UI. More...
 

Static Package Functions

static void OnPaletteChange ()
 

Properties

static ColorPalette ActiveMain [get]
 Main palette.
 
static ColorPalette ActiveAlternative [get]
 Alternative palette scheme that could be selected to contrast result.
 
static ICollection< ColorPalettepalettes [get]
 Palette assets detected among resources.
 

Events

static Action PaletteChanged
 Event that occurs when current ActiveMain palette modified.
 

Member Function Documentation

◆ Apply()

static void Doloro.UIEngine2.Modules.Palettes.PaletteHandler.Apply ( ColorPalette  palette)
static

Applying a palette as main active one and update binded UI.

Parameters
palettePalette to apply.
Exceptions
ArgumentNullExceptionpalette is null.

◆ ApplyAsAlt()

static void Doloro.UIEngine2.Modules.Palettes.PaletteHandler.ApplyAsAlt ( ColorPalette  palette)
static

Applying a palette as alternative active one and update binded UI.

Parameters
palettePalette to apply.
Exceptions
ArgumentNullExceptionpalette is null.

The documentation for this class was generated from the following file: