Operation: Update Theme
The Update Theme operation updates the theme located in the project with the specified ID.
Note:
The changes are updated only at runtime and are stored in a .runtime file. The .theme file in the repository is not updated. For more information, see Using Runtime Configurations.
For more information on Theming (Fonts and Colors), refer to the Web App Guide.
Example
Input
The adapter expects an XML document as input.
<?xml version='1.0' encoding='UTF-8'?>
<Update>
<Id>a902c4c7-99a1-40e7-8c8d-16fbaec8ad7b</Id>
<Theme>
<ColorScheme>
<Color50 normal="#ffffff" contrast="#000000" />
<Color100 normal="#f8f8f8" contrast="#000000" />
<Color200 normal="#e6e9f2" contrast="#000000" />
<Color300 normal="#f0f0f0" contrast="#000000" />
<Color400 normal="#43548e" contrast="#ffffff" />
<Color500 normal="#1e3278" contrast="#ffffff" />
<Color600 normal="#cbcbcb" contrast="#000000" />
<Color700 normal="#aeaeae" contrast="#ffffff" />
<Color800 normal="#919191" contrast="#ffffff" />
<Color900 normal="#2b2b2b" contrast="#ffffff" />
<ColorA100 normal="#f3f3f3" contrast="#000000" />
<ColorA200 normal="#7180b5" contrast="#ffffff" />
<ColorA400 normal="#ececec" contrast="#000000" />
<ColorA700 normal="#ff5a00" contrast="#ffffff" />
</ColorScheme>
<ChartScheme>
<Color01 normal="#e7aada" contrast="#000000" />
<Color02 normal="#84c08c" contrast="#000000" />
<Color03 normal="#adb7f4" contrast="#000000" />
<Color04 normal="#d4e2a2" contrast="#000000" />
<Color05 normal="#4abfe8" contrast="#000000" />
<Color06 normal="#eabf8d" contrast="#000000" />
<Color07 normal="#78ccf9" contrast="#000000" />
<Color08 normal="#abb87a" contrast="#000000" />
<Color09 normal="#f6a2ac" contrast="#000000" />
<Color10 normal="#82e8db" contrast="#000000" />
<Color11 normal="#9cdfb4" contrast="#000000" />
<Color12 normal="#55cdd8" contrast="#000000" />
<ColorGaugeAxisMin normal="#228b22" contrast="#ffffff" />
<ColorGaugeAxisMiddle normal="#3e5570" contrast="#ffffff" />
<ColorGaugeAxisMax normal="#ff4500" contrast="#ffffff" />
</ChartScheme>
<Fonts>
<MainFont>
<Font sourceType="web">Arial</Font>
</MainFont>
<Font01>
<Font sourceType="system">Calibri</Font>
<Font sourceType="web">https://fonts.google.com/specimen/Noto+Sans</Font>
</Font01>
<Font02>
<Font sourceType="web">https://fonts.google.com/specimen/Lora#standard-styles</Font>
</Font02>
</Fonts>
</Theme>
</Update>
The following elements have to be included in the input:
Element | Description |
|---|---|
| The root element of the XML document. |
| UUID of the project where the theme file of |
| The root element of the theme file. |
Status values
| The adapter operation was executed successfully. |
| An error occurred while executing the adapter. |