Function: ux.GetThemeData

Gets the data of the current CST theme selected in WinGuard.

Syntax

{
	"method": "ux.GetThemeData",
	"params": {
		"items": "...",
		"id": "...",
	},
	"id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
}
AdvFuture<ThemeData> GetThemeData( std::optional<std::vector<AdvString>> items = std::nullopt
	 std::optional<AdvString> id = std::nullopt );
public Task<ThemeData> GetThemeDataAsync(IList<string>? items = null, string? id = null, CancellationToken ct = default);
getThemeData(items?: string[] | undefined, id?: string | undefined): Promise<ThemeData>;

Parameters

items : string[] optional

A list of item types that shall be returned (colors, images, props). If it is empty, everything is returned.

id : string optional ≥wg.core 0.0.3

Theme ID (arctic, light_grey, …).

Result : ThemeData

Remarks

This method requires API read access.