Function: app.SetTheme

Set current theme.

Syntax

{
	"method": "app.SetTheme",
	"params": {
		"id": "...",
		"forced": "...",
	},
	"id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
}
AdvFuture<bool> SetTheme( AdvString id, std::optional<bool> forced = std::nullopt );
public Task<bool> SetThemeAsync(string id, bool? forced = null, CancellationToken ct = default);
setTheme(id: string, forced?: boolean | undefined): Promise<boolean>;

Parameters

id : string

Theme Id (arctic, light_grey, …).

forced : bool optional

Set theme without queries, unsaved content may be lost.

Result : bool

Success.

Remarks

This method requires API control access.