Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
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< ColorPalette > | palettes [get] |
Palette assets detected among resources. | |
Events | |
static Action | PaletteChanged |
Event that occurs when current ActiveMain palette modified. | |
|
static |
Applying a palette as main active one and update binded UI.
palette | Palette to apply. |
ArgumentNullException | palette is null. |
|
static |
Applying a palette as alternative active one and update binded UI.
palette | Palette to apply. |
ArgumentNullException | palette is null. |