Closed petearvanitis closed 8 years ago
I was able to do this by injecting a static css sheet by calling Polymer.importHref("../../path/to/my/stylesheet") however this does have a couple limitations:
So adding a custom global-theme.html file and using Polymer.importHref to the demo and style notes in the readme.md would be sufficient to close this issue.
Yes, superdevmode does not monitor files out of the src/main/java folder, so one option is
src/main/java/...../public/mycustom.css
folder, and reference it in your index.html
page as module_folder/mycustom.css
, so as SDM would update it each time you modify it and reloadsrc/main/resources
are copied to target/your_deploy_folder/
(take a look to npm. This node script normally works to me: require('node-watch')(['src/main/webapp','src/main/resources'], function() {
console.log(arguments);
require('child_process').exec('mvn generate-sources');
});
ui.xml
file but out of the <ui:style>
section like: <g:HTMLPanel>
<style is="custom-style">
</style>
....
</g:HTMLPanel>
How/where do we define global theme elements when using either the Elements or Widget approach? I see how we can override --default-primary-color at the individual widget level, but not how to specify it globally for the entire application. Is there a way you could update the documentation to show this as an example?