Hi Piotr,

a theme is like a library but you mark with <scope>theme</theme> like in
the code I posted.
In that example I used three themes since each one has a "piece" of the
puzzle, and in this way you can combine each predefined theme or change
colors and compile your own if you want.
In IDE like VSCode you only need to add the themes you want since are part
of Royale so you only need yo add the dependency.
So in VSCode I only add the code I posted in this thread in my dependencies
and since each theme only has CSS, Royale will process the three files and
create the final CSS in the App.



2018-04-05 22:11 GMT+02:00 Piotr Zarzycki <[email protected]>:

> Hi Carlos,
>
> How build examples in IDE with theme usage ? For example in VSCode ?
>
> Thanks,
> Piotr
>
> 2018-04-05 21:32 GMT+02:00 Carlos Rovira <[email protected]>:
>
> > Hi
> >
> > I want to let you know how themes in Jewel will work with your apps :)
> >
> > I created some themes, but I'll be creating the rest as I get the initial
> > code in develop
> > For now I created light / no flat / themes for colors blue, topaz and
> > emerald
> >
> > I configured JewelExample with the following code
> >
> > <dependency>
> > <groupId>org.apache.royale.framework</groupId>
> > <artifactId>Jewel-Light-NoFlat-Primary-Blue-Theme</artifactId>
> > <version>0.9.3-SNAPSHOT</version>
> > <type>swc</type>
> > <scope>theme</scope>
> > <classifier>js</classifier>
> > </dependency>
> > <dependency>
> > <groupId>org.apache.royale.framework</groupId>
> > <artifactId>Jewel-Light-NoFlat-Secondary-Topaz-Theme</artifactId>
> > <version>0.9.3-SNAPSHOT</version>
> > <type>swc</type>
> > <scope>theme</scope>
> > <classifier>js</classifier>
> > </dependency>
> > <dependency>
> > <groupId>org.apache.royale.framework</groupId>
> > <artifactId>Jewel-Light-NoFlat-Emphasized-Emerald-Theme</artifactId>
> > <version>0.9.3-SNAPSHOT</version>
> > <type>swc</type>
> > <scope>theme</scope>
> > </dependency>
> >
> > So you only need to change themes to get the combo you want
> >
> > All theme css are generated on the fly with JewelTheme (that theme is the
> > "master" theme and use SASS to generate all the possible CSS files and
> put
> > them in the projects that needs that files)
> >
> > So if I change something, I only need to compile SASS to update all theme
> > projects :)
> >
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
> >
>
>
>
> --
>
> Piotr Zarzycki
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>



-- 
Carlos Rovira
http://about.me/carlosrovira

Reply via email to