Hi Carlos, Thanks for the overview, do you have an example of how to use the -theme compiler argument? I checked here:
https://apache.github.io/royale-docs/compiler/compiler-options.html but there is no mention of -theme. Cheers, David On Tue, 2 Mar 2021 at 11:40, Carlos Rovira <carlosrov...@apache.org> wrote: > Hi David, > > you use "-theme" compiler option to add one the jewel theme css that gives > you primary, secondary and emphasized colors all-in-one or choose a > combination of concrete jewel themes one for each of the three colors > (separating it with ","). > > the loadCSS function allows you to override the default theme at runtime > you choose so each rule in the browser is override that way. > > The exclude-defaults-css-files for MXRoyale is needed since MXRoyale has > it's own CSS rules that will be mixed with Jewel rules generating > unexpected results. One day I expect to separate RPC classes from MXRoyale > so we can not use MX library with CSS included and get rid of that line. > Other than that, it's ok to use MXRoyale for RPC classes with Jewel since I > think we all are using it that way. > > HTH > > > El mar, 2 mar 2021 a las 10:52, Carlos Rovira (<carlosrov...@apache.org>) > escribió: > >> Hi David, >> >> just fixed the link to jewel themes in docs [1] >> >> I'll answer other points as I have more time >> >> HTH >> >> [1] https://apache.github.io/royale-docs/component-sets/jewel/themes >> >> >> >> El mar, 2 mar 2021 a las 8:55, David Slotemaker de Bruine (< >> dslotema...@vicensvives.com>) escribió: >> >>> Hi, >>> >>> I want to implement Jewel themes like in TDJ. The docs currently point >>> to a 404 page: >>> >>> https://apache.github.io/royale-docs/component-sets/jewel/jewel-themes >>> >>> Looking at the source code of TDJ I see you can call an new theme with: >>> >>> loadCSS("assets/themes/Jewel-Light-" + flatState + "-" + emphasis + "-" >>> + color + "-Theme/defaults.css") >>> >>> For some reason this is not available to me when compiling, I think it >>> might be due to my compiler settings: >>> "-compiler.exclude-defaults-css-files=MXRoyaleJS.swc" >>> >>> -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css >>> -html-template=src/resources/jewel-index-template.html >>> -js-library-path+=${royalelib}/js/libs/MXRoyaleJS.swc >>> -compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults.css >>> +configname=flex -js-library-path+=${royalelib}/js/libs/MXRoyaleJS.swc >>> >>> I am using mx:RemoteObjects and I think we added that line so there >>> isn't any conflict? >>> >>> What should I do. >>> >>> David >>> >>> >>> >>> >> >> -- >> Carlos Rovira >> Apache Member & Apache Royale PMC >> *Apache Software Foundation* >> http://about.me/carlosrovira >> >> > > -- > Carlos Rovira > Apache Member & Apache Royale PMC > *Apache Software Foundation* > http://about.me/carlosrovira > > -- *David Slotemaker de Bruïne* *Head of Educational Robotics* Av. Sarriá, 130 - 08017 Barcelona <https://maps.google.com/?q=Av.+Sarri%C3%A1,+130+-+08017+Barcelona&entry=gmail&source=g> T. +34 932 523 729 ext. 135 dslotema...@vicensvives.com