Hello
I have a modern ExtJS 6.2.1 application packaged using Cordova for Android. The project is configured to use CrossWalk (Chromium) as WebView and theme-material as theme.
I include css-vars.js in index.html like this:
Code:
<script type="text/javascript" src="modern/resources/css-vars.js"> </script>
So, the class "Fashion" is defined at run-time, and the following call returns true:
Code:
var tt=Ext.theme.Material.hasFashion();
The problem is that when I call "setVariables" function like this:
Code:
Fashion.css.setVariables({
'base-color': 'red'
});
nothing happens, and no error is given on the console. Also, this function call:
Code:
Ext.theme.Material.setDarkMode(true);
does nothing, as it calls "setVariables" internally.
What can I do to be able to change the CSS variables at run-time? Why doesn't "setVariables" work? Is it because of Cordova packaging?
Thanks