Re: How can we pass colors to a CSS?

2018-03-08 Thread Carlos Rovira
Hi Alex, I started the theme as "VividBlue", but was something to get started, as I read and look how others are doing, I see that main colors should be configurable on the same theme, for that reason the theme refactor name is simply "JewelTheme". In the other hand, I'm a bit blocked trying to

Re: How can we pass colors to a CSS?

2018-03-08 Thread Alex Harui
Hi Carlos, That's fine if you want to work on a CSS theme. Your reasoning make sense. Yes, Maven allows substitutions, but as you said there is Ant, but also command-line and IDEs. They all need a way to do whatever you want. Let's work from a real example: What is a selector that you want

Re: How can we pass colors to a CSS?

2018-03-08 Thread Alex Harui
I think I may be missing something, because, IMO, the Royale way is to use Themes. Weren't you working on a VividBlue theme? I suppose Themes might be a bit heavier than true string/variable substitution, but I think there is property overriding in the compiler. I'm not sure order of theme SWCs

Re: How can we pass colors to a CSS?

2018-03-08 Thread Harbs
If we could ignore IE, CSS variables would have been a nice solution… https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables > On Mar 8, 2018, at 1:29 PM, Piotr Zarzycki wrote: > >

Re: How can we pass colors to a CSS?

2018-03-08 Thread Harbs
I wonder if this might be useful for IE… https://codepen.io/aaronbarker/pen/MeaRmL > On Mar 8, 2018, at 3:18 PM, Harbs wrote: > > If we could ignore IE, CSS variables would have been a nice solution… >

Re: How can we pass colors to a CSS?

2018-03-08 Thread Carlos Rovira
Hi Alex, at this moment, I only need to get 2-3 colors in final CSS file. But next I think we should have a similar theme but with gradientes, that will mean 4-6 colors. But as I go with this maybe I could need something more, but right now don't know what could be. As you say, the counterpart

Re: How can we pass colors to a CSS?

2018-03-08 Thread Piotr Zarzycki
Hi, Why can it be simpler by creating bunch of default css classes, which stores colors which you need ? Why complicating it by asking user to inject something through the compiler options ? 2018-03-08 12:12 GMT+01:00 Carlos Rovira : > Hi Alex, > > at this moment, I

Re: How can we pass colors to a CSS?

2018-03-08 Thread Carlos Rovira
Hi Om, I think SASS makes very few things (although essential for what I need to progress in this effort). I'm with you that having that integrated as a new development for royale that makes all of that more integrating it with AS3/MXML is the way to go. The problem right now is that is not real

Re: How can we pass colors to a CSS?

2018-03-08 Thread Alex Harui
Hi Carlos, Please try using themes and tell us why they are not working as you expect. Thanks, -Alex On 3/8/18, 10:01 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >Hi Alex, > >for me is clear: If we have the same

Re: How can we pass colors to a CSS?

2018-03-08 Thread Carlos Rovira
Hi Alex, for me is clear: If we have the same we get with SASS in Royale that's the way to go, the problem is that is not still real and I can't work until is done. I'm not a compiler guy, and I think is a bit utopic for me try to be sucessful in that area, and I can't ask you to stop other works

Re: How can we pass colors to a CSS?

2018-03-08 Thread OmPrakash Muppirala
Carlos, I use Sass/Scss extensively. I really don't think it effectively solves the problem we are diacuasing here. But if the entire Royale community wants to standardize on Sass as the css preprocessor, I will respect that. Once you do your POC maybe we will be in a better place to make a

Re: How can we pass colors to a CSS?

2018-03-08 Thread Alex Harui
Hi Carlos, The other tool you have in hand is themes. I don't think you've convinced me and some others that what you want to achieve can't be done with the theme feature in the compiler. Let' make sure we all agree that we don't already have all or most of a solution for this without string

Re: How can we pass colors to a CSS?

2018-03-08 Thread Alex Harui
Hi Carlos, I don't doubt that SASS is powerful and useful, otherwise it wouldn't be popular. What I am asking you to consider is that every decision you make affects a lot of people and we only have a relatively small team. So the first question I have is what is there about the current Royale

Re: How can we pass colors to a CSS?

2018-03-08 Thread Carlos Rovira
Hi Alex, but...I'm using themes. The concept/target continues inmutable. SASS only transforms sass files to a final css. What SASS does is easy [1] So if we get in Royale something like this as Om suggest, we can remove SASS and use ours (maybe call ir ROSS ;)) But something I need much more

Migrating Flex Apps to Royale Emulation Components

2018-03-08 Thread Alex Harui
Hi Folks, As you hopefully know, we've started on creating new Royale component sets that more closely match the APIs used in Flex. These components will not be 100% backward compatible with Flex, but should go a long way towards minimizing the number of changes required to your code. I am

Re: Migrating Flex Apps to Royale Emulation Components

2018-03-08 Thread OmPrakash Muppirala
Nice! This is great progress indeed. Thanks to you and Peter! Regards, Om On Thu, Mar 8, 2018 at 7:37 PM, Alex Harui wrote: > Hi Folks, > > As you hopefully know, we've started on creating new Royale component sets > that more closely match the APIs used in Flex.

Re: How can we pass colors to a CSS?

2018-03-08 Thread Carlos Rovira
Hi Piotr, what I'm proposing is the same that google made with MDL and you're using in your examples. The only way to let developers to have more control is in this way. I'll write a email now since I get it working in Maven stay tuned! :) 2018-03-08 12:29 GMT+01:00 Piotr Zarzycki

Re: How can we pass colors to a CSS?

2018-03-08 Thread OmPrakash Muppirala
Let us not introduce Sass into the Royale toolchain. We need to be css preprocessor agnostic. The short term solution could be that we inject properties into the app and a theme class simply does a setAttribute("style", "color=injectedColorValue") based on that. Also, CSS variables are scoped

Re: How can we pass colors to a CSS?

2018-03-08 Thread Carlos Rovira
Hi Harbs, the problem is IE11 is now the second browsers most used...maybe in 1-2 years Edge comes to the rescue, but right now Edge numbers are too bad :( 2018-03-08 14:18 GMT+01:00 Harbs : > If we could ignore IE, CSS variables would have been a nice solution… >

Re: How can we pass colors to a CSS?

2018-03-08 Thread Carlos Rovira
Hi Om, after seeing today some videos, docs and info about SASS I think is worth it to use it. In fact is widely used today for all big players (google,..) The greatness about SASS is the is so simple and not only allows variables, but nesting css elements (that make more easy to organize), and