royale-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Rovira <carlosrov...@apache.org>
Subject Re: How to inject html with a theme class
Date Tue, 06 Mar 2018 16:01:12 GMT
Hi Piotr,

I introduced a new line in Application.as in Jewel UI set to start
implementing responsiveness in mobile:

<meta name="viewport" content="width=device-width, initial-scale=1,
minimum-scale=1, maximum-scale=1">

this line is ok at that level since all jewel apps could be responsive

that line appears ok in final html

but the one in the theme, is not appearing in the html

the rest seems ok with the normal script generated by Royale



2018-03-06 16:47 GMT+01:00 Piotr Zarzycki <piotrzarzycki21@gmail.com>:

> Hi Carlos,
>
> How looks like HTML output when you compile things using that stuff ?
>
> Thanks, Piotr
>
> 2018-03-06 16:40 GMT+01:00 Carlos Rovira <carlosrovira@apache.org>:
>
> > Hi
> >
> > I want the theme define the typography to use, to get this I'm using the
> > inject_html tag in the constructor
> >
> > The only class I have in the theme is the following
> >
> >
> > package
> > {
> >
> > /**
> > * @private
> > * This class is used to link additional classes into JewelTheme.swc
> > * beyond those that are found by dependecy analysis starting
> > * from the classes specified in manifest.xml.
> > */
> > internal class JewelThemeClasses
> > {
> > /**
> > * constructor.
> > *
> >          * <inject_html>
> >          * <link href="https://fonts.googleapis.com/css?family=Lato"
> > rel="stylesheet">
> >     * </inject_html>
> >          *
> > * @langversion 3.0
> > * @playerversion Flash 10.2
> > * @playerversion AIR 2.6
> > * @productversion Royale 0.9.2
> > */
> >         public function JewelThemeClasses()
> >         {
> > super();
> > }
> > }
> >
> > }
> >
> > But this is not working since I don't get anything injected in the html
> >
> > anyone knows what could be the problem?
> >
> > thanks
> >
> >
> > --
> > 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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message