I think we should have a shindig feature to get the current theme name, such that gadget can dynamically load the .css. Will this work ?
Regards Suho On Fri, Jul 15, 2016 at 2:15 PM, Jerad Rutnam <[email protected]> wrote: > Hi Udara, > > Good point. Is there anyway we can look for the path > "portal\store\carbon.super\fs\theme\<custom-theme-name>\css\gadget.css" > dynamically? Does shindig has any feature to achieve this? > > Cheers! > > On Fri, Jul 15, 2016 at 1:54 PM, Udara Rathnayake <[email protected]> wrote: > >> Hi Jerad, >> >> One more thing, considering gadget generation as a one-time thing, how we >> are going to support dashboard view theme update functionality. As I >> remember we have a functionality to do this right now. So in that case >> gadgets need to aware of the current theme and update dynamically. >> >> On Fri, Jul 15, 2016 at 1:12 PM, Jerad Rutnam <[email protected]> wrote: >> >>> Hi Udara, >>> >>> Not the entire DS theme. But a theme for gadgets that will have a >>> consistent UI to match the default DS theme. So users can generate gadgets >>> without worrying about the look and feel of it. >>> >>> Because currently users have to style the gadget from the scratch once >>> they generate it using the Gadget Generate Wizard. >>> >>> Cheers! >>> Jerad >>> >>> On Fri, Jul 15, 2016 at 12:07 PM, Udara Rathnayake <[email protected]> >>> wrote: >>> >>>> are we going to inherit DS theme across gadgets? >>>> >>>> >>>> On Fri, Jul 15, 2016 at 11:14 AM, Jerad Rutnam <[email protected]> wrote: >>>> >>>>> Hi Sinthuja, >>>>> >>>>> >>>>> Just summarizing the offline discussion we had yesterday, >>>>> >>>>> So the basic idea is that, since we ship a default theme with the >>>>> Dashboard Server. We should also add a default theme for precooked >>>>> gadgets, >>>>> that we ship with the Dashboard Server. >>>>> >>>>> And also this should apply to the gadgets that are generated by the >>>>> Gadget Create Wizard. Then generated gadgets will have a default theme and >>>>> gadget generator(user) does not has to worry about the styling of it, >>>>> unless he/she wants a fully customized UI. We can have a configuration to >>>>> disable this theme if anyone wants. >>>>> >>>>> If the default theme is enabled on gadgets, it should apply the >>>>> default stylesheet for the gadgets along with the chart template core >>>>> styles. >>>>> >>>>> Also there should be a gadget extension stylesheet available for the >>>>> theme developers. So he/she can overwrite the default gadget styling + >>>>> theme styling (e.g. "gadget.css", just like we have for dashboard and >>>>> portal). >>>>> >>>>> >>>>> Let me know the thought. >>>>> >>>>> >>>>> Cheers! >>>>> -- >>>>> *Jerad Rutnam* >>>>> *Software Engineer* >>>>> >>>>> WSO2 Inc. >>>>> lean | enterprise | middleware >>>>> M : +94 77 959 1609 | E : [email protected] | W : www.wso2.com >>>>> >>>> >>>> >>>> >>>> -- >>>> Regards, >>>> UdaraR >>>> >>> >> >> >> -- >> Regards, >> UdaraR >> > > -- *S. Suhothayan* Technical Lead & Team Lead of WSO2 Complex Event Processor *WSO2 Inc. *http://wso2.com * <http://wso2.com/>* lean . enterprise . middleware *cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/ <http://suhothayan.blogspot.com/>twitter: http://twitter.com/suhothayan <http://twitter.com/suhothayan> | linked-in: http://lk.linkedin.com/in/suhothayan <http://lk.linkedin.com/in/suhothayan>*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
