thexerteproject / xerteonlinetoolkits

Xerte Online Toolkits
www.xerte.org.uk
Apache License 2.0
62 stars 61 forks source link

Allow data in theme info files to be used by xwd conditions #1149

Closed FayCross closed 1 year ago

FayCross commented 2 years ago

There's a new optional property called 'update theme icons' which is only used for themes where the interface buttons use images rather than font awesome icons. At the moment, these themes are listed in the xwd condition so that it disappears on more up to date themes: condition="theme==undefined||theme=='default'||theme=='darkgrey'||theme=='flatblue'||theme=='orangepurple'||theme=='flatred'||theme=='flatwhite'||theme=='sketch'||theme=='django'||theme=='blackround'"

This works but it means that it won't appear for custom themes that have been developed outside of the xerte code. Ideally, there would be a flag in the info file and this could be used to determine whether the editor field is visible/hidden.