Re: [FlexJS] Applying styles

2016-10-30 Thread Alex Harui
On 10/30/16, 2:34 PM, "yishayw" wrote: >Well, changing the className does actually change the DOM class in >runtime, >so it seems a bit arbitrary that that's reflected in DOM while changing >style is not. Right now, I'm using this bug(?) as a way to make run-time >style changes. AFAICT, "cl

Re: [FlexJS] Applying styles

2016-10-30 Thread yishayw
's good to know that that's an option. I understand the PAYG thing, but now that I want to pay, how do I do it? Isn't binding expensive? -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Applying-styles-tp56104p56117.html Sent from the A

Re: [FlexJS] Applying styles

2016-10-30 Thread Alex Harui
On 10/30/16, 4:01 AM, "yishayw" wrote: >I noticed UIBase set style doesn't apply the new style to the HTML element >while set className does. Is that on purpose? > Yes. Under pay-as-you-go, there is cost to supporting changing styles at runtime, so the default implementation assumes no styles

[FlexJS] Applying styles

2016-10-30 Thread yishayw
I noticed UIBase set style doesn't apply the new style to the HTML element while set className does. Is that on purpose? -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-Applying-styles-tp56104.html Sent from the Apache Flex Development mailing

Re: [FlexJS] Applying Styles

2016-06-30 Thread Peter Ent
Hi, I've spent some time looking into styling the basic FlexJS component set. The result is a new example, StyleExample, which I've just checked into the FlexJS repository. I took a very simple approach and in doing so, uncovered a couple of bugs and added some parts. For example, I broke up the

Re: [FlexJS] Applying Styles

2016-06-15 Thread Alex Harui
On 6/15/16, 12:11 AM, "jude" wrote: >What I ran into with the drop in themes is that they sometimes change the >size and shape of the components. I had a project where I dropped in >FlatUI >and the elements were all cut off because the width and height were >explicitly set. It wasn't hard to fi

Re: [FlexJS] Applying Styles

2016-06-15 Thread Alex Harui
Sounds like there is consensus to implement Material. Again, though, I would like to see the Basic components be as basic as possible: a for Button, a for Label, etc. AIUI, there is no way to get control over every pixel. On my Mac, with the OS theme I've selected, the browser is going to show

Re: [FlexJS] Applying Styles

2016-06-15 Thread Carlos Rovira
Peter, I think the same, a good looking white-grey default theme would be perfect as default. Then people could customize or change theme. Thanks 2016-06-15 16:06 GMT+02:00 Peter Ent : > After looking over the Material stuff and seeing what the FlexJS Basic > component set is capable of, I think

Re: [FlexJS] Applying Styles

2016-06-15 Thread Peter Ent
After looking over the Material stuff and seeing what the FlexJS Basic component set is capable of, I think a grayscale theme would be best. It would be neutral to allow browser-specific colors in controls and focus while still providing a decent look to the components. I'll let everyone know when

Re: [FlexJS] Applying Styles

2016-06-15 Thread Harbs
For any included svg, it should not be linked files (to minimize HTTP requests). It should either be Base64 in CSS, or injected into the HTML as markup. It might be interesting to put together an SVG injector class which would basically embed the raw SVG code into the JS and inject it into marku

Re: [FlexJS] Applying Styles

2016-06-15 Thread Carlos Rovira
I think as well that Material Design should be the base and Bootstrap would be good as well, but for me in second place. For SWF, I think FlexJS is more about HTML, so I will put all my efforts in good-looking HTML and let SWF version to be wireframe looking with the recipients to make the work, bu

Re: [FlexJS] Applying Styles

2016-06-15 Thread jude
What I ran into with the drop in themes is that they sometimes change the size and shape of the components. I had a project where I dropped in FlatUI and the elements were all cut off because the width and height were explicitly set. It wasn't hard to fix after the fact but some things weren't size

Re: [FlexJS] Applying Styles

2016-06-14 Thread Alex Harui
On 6/14/16, 3:25 PM, "jude" wrote: >If you're using the default HTML elements I would have no expectation. I >would expect the developer or designer to add their own skin set like >FlatUI at a later time. > >But if you want a default style I would think there might be a happy >medium >with SVG

Re: [FlexJS] Applying Styles

2016-06-14 Thread jude
If you're using the default HTML elements I would have no expectation. I would expect the developer or designer to add their own skin set like FlatUI at a later time. But if you want a default style I would think there might be a happy medium with SVG skins. A while back Om made a SVG skin that lo

Re: [FlexJS] Applying Styles

2016-06-14 Thread OmPrakash Muppirala
I think Material is probably a better option. Bootstrap is kind of a thing of the past these days, at least the default look and feel. Almost all frameworks (Angular 1/2, React, etc.) have some level support for Material Design. Thanks, Om On Tue, Jun 14, 2016 at 12:37 PM, Alex Harui wrote: >

Re: [FlexJS] Applying Styles

2016-06-14 Thread Alex Harui
Good ideas, however, our CSS implementation on the SWF side isn't yet capable of the advanced CSS in Bootstrap, and the component implementations for Bootstrap are more than a single HTMLElement. I think we are looking for someone to help with improving the look of our simple implementations. We

Re: [FlexJS] Applying Styles

2016-06-14 Thread Harbs
I think the styles should closely match Bootstrap (or maybe use Bootstrap). Material Design is another good target. On Jun 14, 2016, at 8:34 PM, Peter Ent wrote: > Hi, > > I'm working on making the FlexJS examples look better via CSS. I'll most > likely check in a separate branch, but I though

[FlexJS] Applying Styles

2016-06-14 Thread Peter Ent
Hi, I'm working on making the FlexJS examples look better via CSS. I'll most likely check in a separate branch, but I thought I'd ask you all what your expectations would be. Keep in mind that the basic (HTML project) component set is meant to provide ActionScript wrapping for HTML elements -