Alex, I can confirm that this is working. When I added following compiler arguments
-theme=${royalelib}/themes/Jewel-Light-NoFlat-Primary-Blue-Theme/src/main/resources/defaults.css My suggestion is that: 1) We should write blog post which describes how to setup all examples in Moonshine and VSCode. Write about above compiler arguments, because I see couple of comments where people just trying to use example and having problems. 2) Make proper description in Release notes or Wiki. Thanks, Piotr 2018-05-21 8:18 GMT+02:00 Alex Harui <aha...@adobe.com.invalid>: > I'm too swamped to read this whole thread, but one note: Ant doesn't need > to build CSS-only themes. The examples that use them only need to use > -theme=<path to .css file> > > HTH, > -Alex > > On 5/20/18, 12:52 AM, "carlos.rov...@gmail.com on behalf of Carlos > Rovira" <carlos.rov...@gmail.com on behalf of carlosrov...@apache.org> > wrote: > > So great! :) > > as I said in the my last email, someone should contribute the ANT > builds > for each theme. > In that way, since at some time I'll be uploading the other half of > themes, > those themes can go with the right ANT build. > Think that all Jewel themes are about 140, and I uploaded around 70. > > Thanks! :) > > 2018-05-19 12:36 GMT+02:00 Piotr Zarzycki <piotrzarzyck...@gmail.com>: > > > Definitely ant build for all themes is broken. There is absolutely > no swcs. > > However I did small experiment - I build specific theme by Maven and > it > > produces for me: > > > > */themes/Jewel-Light-NoFlat-Primary-Blue-Theme/target/ > > Jewel-Light-NoFlat-Primary-Blue-Theme-0.9.4-SNAPSHOT-js.swc* > > > > I have added in Moonshine in project Settings Additional compiler > options: > > > > *-theme=${royalelib}/themes/Jewel-Light-NoFlat-Primary- > > Blue-Theme/target/Jewel-Light-NoFlat-Primary-Blue-Theme-0.9. > > 4-SNAPSHOT-js.swc* > > > > And Example: " > > *BE0006_Binding_the_text_property_of_a_Jewel_Textinput_ > > to_update_a_text_label*" > > successfully loaded theme. We definitely have solution for the path > > problem! > > > > Many Thanks Josh. > > > > The only thing which have to be fix is ANT build. > > > > Thanks, > > Piotr > > > > > > 2018-05-19 12:18 GMT+02:00 Piotr Zarzycki <piotrzarzyck...@gmail.com > >: > > > > > Carlos, > > > > > > If when I checked distribution package of Royale [1] I don't see > there > > > Jewel-Dark-NoFlat-Emphasized-Blue-Theme.swc. The only things > which I'm > > > seeing is folder frameworks/themes/ Jewel-Dark-NoFlat-Emphasized- > > > Blue-Theme. > > > > > > Where those swcs are ? Have you make them build by ANT ? > > > > > > [1] https://na01.safelinks.protection.outlook.com/?url= > http%3A%2F%2Fapacheroyaleci.westus2.cloudapp.azure.com% > 3A8080%2Fjob%2F&data=02%7C01%7Caharui%40adobe.com% > 7Ce94879db7680431c8e9708d5be269652%7Cfa7b1b5a7b34438794aed2c178de > cee1%7C0%7C0%7C636623995327137023&sdata=CTQf3SW4yMdjGNMGtVZc0CJCUg8jxF > 06pgGFYKPAQxs%3D&reserved=0 > > royale-asjs/ > > > > > > Thanks, > > > Piotr > > > > > > > > > 2018-05-19 7:08 GMT+02:00 Carlos Rovira <carlosrov...@apache.org>: > > > > > >> Great Josh!, this sounds like a solution! Hope Harbs or Piotr can > try > > this > > >> and report if is working! :) > > >> > > >> 2018-05-19 0:38 GMT+02:00 Josh Tynjala <joshtynj...@apache.org>: > > >> > > >> > Please forgive me if I'm missing some context because I'm just > > skimming > > >> > through here. However, I think I may be able to offer a > suggestion. > > >> > > > >> > Is the absolute path a location inside the the Royale SDK? If > so, then > > >> you > > >> > can use the ${royalelib} token to refer to the path relative to > the > > >> SDK's > > >> > *frameworks* directory. The Royale compiler knows how to > resolve a > > path > > >> > based on this token. > > >> > > > >> > For other SDKs, there's a similar ${flexlib} token. For the > example > > >> themes > > >> > included with the Feathers SDK, I've successfully used > ${flexlib} to > > >> add a > > >> > SWC to my project in *asconfig.json* without needing an > absolute path: > > >> > > > >> > "library-path": ["${flexlib}/themes/MetalWorksDesktopTheme/ > > >> > MetalWorksDesktopTheme.swc"] > > >> > > > >> > A while back, I made sure that the ${royalelib} and ${flexlib} > tokens > > >> both > > >> > work in VSCode. > > >> > > > >> > - Josh > > >> > > > >> > On 2018/05/18 13:05:34, Harbs <harbs.li...@gmail.com> wrote: > > >> > > No. Specifying the themes seems to be a major problem. > > >> > > > > >> > > It’s possible to specify a theme using additional compiler > options > > in > > >> > asconfig, but I’m not prepared to specify an absolute path. This > > needs a > > >> > solution… > > >> > > > > >> > > Harbs > > >> > > > > >> > > > On May 18, 2018, at 3:56 PM, Piotr Zarzycki < > > >> piotrzarzyck...@gmail.com> > > >> > wrote: > > >> > > > > > >> > > > Hi Harbs, > > >> > > > > > >> > > > Were you able to setup project in IDE ? > > >> > > > > > >> > > > Thanks, > > >> > > > Piotr > > >> > > > > > >> > > > 2018-05-17 15:13 GMT+02:00 Carlos Rovira < > carlosrov...@apache.org > > >: > > >> > > > > > >> > > >> Look foro "Inject a Font" > > >> > > >> > > >> > > >> 2018-05-17 15:12 GMT+02:00 Harbs <harbs.li...@gmail.com>: > > >> > > >> > > >> > > >>> What was the subject? > > >> > > >>> > > >> > > >>>> On May 17, 2018, at 4:08 PM, Carlos Rovira < > > >> carlosrov...@apache.org > > >> > > > > >> > > >>> wrote: > > >> > > >>>> > > >> > > >>>> Hi, > > >> > > >>>> > > >> > > >>>> I think seems something valid, maybe we should think > more about > > >> > > >> possible > > >> > > >>>> colateral issue of that method. You should look as well > at a > > >> thread > > >> > > >> where > > >> > > >>>> Alex proposed as well some valid options > > >> > > >>>> > > >> > > >>>> 2018-05-17 15:04 GMT+02:00 Harbs <harbs.li...@gmail.com > >: > > >> > > >>>> > > >> > > >>>>> I just had another thought which might be even more > flexible: > > >> > > >>>>> > > >> > > >>>>> Maybe the compile could parse @includes from CSS and > insert > > >> them as > > >> > > >>> links > > >> > > >>>>> in the header HTML automatically. > > >> > > >>>>> > > >> > > >>>>> Thanks, > > >> > > >>>>> Harbs > > >> > > >>>>> > > >> > > >>>>>> On May 17, 2018, at 3:52 PM, Carlos Rovira < > > >> > carlosrov...@apache.org> > > >> > > >>>>> wrote: > > >> > > >>>>>> > > >> > > >>>>>>> > > >> > > >>>>>>> Another angle on this problem might be to allow > adding links > > >> via > > >> > the > > >> > > >>>>>>> compiler automatically. Not sure exactly what form > that > > might > > >> > take > > >> > > >>>>> though. > > >> > > >>>>>>> > > >> > > >>>>>>> > > >> > > >>>>>> This was something Alex propose, something in the line > of > > >> @media > > >> > > >>>>>> -royale-swf, but with fonts, I think that is the right > way. > > >> > > >>>>>> For now we can stick with the html template but that > should > > be > > >> > > >>> temporal. > > >> > > >>>>> > > >> > > >>>>> > > >> > > >>>> > > >> > > >>>> > > >> > > >>>> -- > > >> > > >>>> Carlos Rovira > > >> > > >>>> https://na01.safelinks.protection.outlook.com/?url= > http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com% > 7Ce94879db7680431c8e9708d5be269652%7Cfa7b1b5a7b34438794aed2c178de > cee1%7C0%7C0%7C636623995327137023&sdata=spsX3%2BArcomczR36Q% > 2B129By1eBuEeQOJ6WWSOq1FgtQ%3D&reserved=0 > > >> > > >>> > > >> > > >>> > > >> > > >> > > >> > > >> > > >> > > >> -- > > >> > > >> Carlos Rovira > > >> > > >> https://na01.safelinks.protection.outlook.com/?url= > http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com% > 7Ce94879db7680431c8e9708d5be269652%7Cfa7b1b5a7b34438794aed2c178de > cee1%7C0%7C0%7C636623995327137023&sdata=spsX3%2BArcomczR36Q% > 2B129By1eBuEeQOJ6WWSOq1FgtQ%3D&reserved=0 > > >> > > >> > > >> > > > > > >> > > > > > >> > > > > > >> > > > -- > > >> > > > > > >> > > > Piotr Zarzycki > > >> > > > > > >> > > > Patreon: *https://na01.safelinks. > protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com% > 2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com% > 7Ce94879db7680431c8e9708d5be269652%7Cfa7b1b5a7b34438794aed2c178de > cee1%7C0%7C0%7C636623995327137023&sdata=nOCMLrOMrSLyGO0cS930SBNewaVFPx > tHe9QM5cVaGkk%3D&reserved=0 > > >> > > > <https://na01.safelinks.protection.outlook.com/?url= > https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&data=02%7C01% > 7Caharui%40adobe.com%7Ce94879db7680431c8e9708d5be269652% > 7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636623995327137023&sdata= > nOCMLrOMrSLyGO0cS930SBNewaVFPxtHe9QM5cVaGkk%3D&reserved=0>* > > >> > > > > >> > > > > >> > > > >> > > >> > > >> > > >> -- > > >> Carlos Rovira > > >> https://na01.safelinks.protection.outlook.com/?url= > http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com% > 7Ce94879db7680431c8e9708d5be269652%7Cfa7b1b5a7b34438794aed2c178de > cee1%7C0%7C0%7C636623995327137023&sdata=spsX3%2BArcomczR36Q% > 2B129By1eBuEeQOJ6WWSOq1FgtQ%3D&reserved=0 > > >> > > > > > > > > > > > > -- > > > > > > Piotr Zarzycki > > > > > > Patreon: *https://na01.safelinks.protection.outlook.com/?url= > https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&data=02%7C01% > 7Caharui%40adobe.com%7Ce94879db7680431c8e9708d5be269652% > 7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636623995327137023&sdata= > nOCMLrOMrSLyGO0cS930SBNewaVFPxtHe9QM5cVaGkk%3D&reserved=0 > > > <https://na01.safelinks.protection.outlook.com/?url= > https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&data=02%7C01% > 7Caharui%40adobe.com%7Ce94879db7680431c8e9708d5be269652% > 7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636623995327147032&sdata=% > 2FI76%2FD982g273D8ng6udrOu8uKT9qNkqDCEqaPeJ4Sw%3D&reserved=0>* > > > > > > > > > > > -- > > > > Piotr Zarzycki > > > > Patreon: *https://na01.safelinks.protection.outlook.com/?url= > https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&data=02%7C01% > 7Caharui%40adobe.com%7Ce94879db7680431c8e9708d5be269652% > 7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636623995327147032&sdata=% > 2FI76%2FD982g273D8ng6udrOu8uKT9qNkqDCEqaPeJ4Sw%3D&reserved=0 > > <https://na01.safelinks.protection.outlook.com/?url= > https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&data=02%7C01% > 7Caharui%40adobe.com%7Ce94879db7680431c8e9708d5be269652% > 7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636623995327147032&sdata=% > 2FI76%2FD982g273D8ng6udrOu8uKT9qNkqDCEqaPeJ4Sw%3D&reserved=0>* > > > > > > -- > Carlos Rovira > https://na01.safelinks.protection.outlook.com/?url= > http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com% > 7Ce94879db7680431c8e9708d5be269652%7Cfa7b1b5a7b34438794aed2c178de > cee1%7C0%7C0%7C636623995327147032&sdata=603PEE5Eqy%2Fhlcg7AZHfIWgoyUwtb% > 2BTs9qMCyclZ7To%3D&reserved=0 > > > -- Piotr Zarzycki Patreon: *https://www.patreon.com/piotrzarzycki <https://www.patreon.com/piotrzarzycki>*