Host a SVG Theme
To host your custom made svg theme we reccommand that you proceed as follow:
- Create a webprocess and place a webScript inside of it.
- Edit the webscript and import your svg file using the « Ressources » tab.
- In the « code » tab, write the following :
//In this example, the imported file is named testTheme.svg
uses System.Net, SysUtils;
WebResponse.ContentType := 'image/svg+xml';
WebResponse.Header['Access-Control-Allow-Origin'] := '*';
WebResponse.ContentData := ResourceAsString('testStyle.svg');
uses System.Net, SysUtils;
WebResponse.ContentType := 'image/svg+xml';
WebResponse.Header['Access-Control-Allow-Origin'] := '*';
WebResponse.ContentData := ResourceAsString('testStyle.svg');
- Tick the ‘Default query’ checkbox, save your modifications and close the webProcess Editor.
- Validate the document.
- Now anywhere you want to use this theme, type this line in the 'theme' property of your buttons, just replace servername by the name of your qubes server and documentRUD by your document's identifier.
http://serverName/WebProcess.cit/documentRUD/