I can't delete the default theme because everything was built on top of
that, so, I found a workaround:

In the index.html, after the following line that loads the default css:
<link rel="stylesheet" type="text/css" href="${application}.css">
And before loading any other specific css, I puted the following:
<style>
*
{
font-family: unset;
font-size: unset;
}
</style>

So, I let the default css to run, than I unset the problematic css and then
I run the other specific css and everything is now looking good.
Perhaps it's not the ideal solution but is working better.

Hugo Ferreira <hferreira...@gmail.com> escreveu no dia quinta, 28/07/2022
à(s) 13:36:

> Unfortunately, did not work.
> I also tried to create a dummy App.css.
>
> This is my config:
> {
> "config": "royale",
> "copySourcePathAssets": true,
> "compilerOptions": {
> "debug": false,
> "targets": ["JSRoyale"],
> "source-path": [
> "/Volumes/Data/CloudDrive/Projects/RoyaleFramework/src"
> ],
> "source-map": true,
> "html-template": "src/resources/index-template.html",
> "library-path": [
> "/Volumes/Data/CloudDrive/Projects/RoyaleFramework/bin/RoyaleFramework.swc"
> ],
> "js-library-path": [
> "${royalelib}/js/libs/MXRoyaleJS.swc",
> "/Volumes/Data/CloudDrive/Projects/RoyaleFramework/bin/RoyaleFramework.swc"
> ]
> },
> "additionalOptions": "-remove-circulars
> -js-output-optimization=skipAsCoercions
> -compiler.exclude-defaults-css-files=MXRoyale-0.9.10-js.swc:defaults.css
> -keep-as3-metadata+=Transient,MaxLength,Required,TableColumn
> -js-dynamic-access-unknown-members=true",
> "files":
> [
> "src/App.mxml"
> ]
> }
>
> Harbs <harbs.li...@gmail.com> escreveu no dia quinta, 28/07/2022 à(s)
> 13:04:
>
>> That’s coming from one of the Royale themes. Try specifying a theme
>> argument pointing to your own css file. In asconfij.json that would be
>> inside compilerOptions:
>>
>> "theme": "src/main.css"
>>
>> HTH,
>> Harbs
>>
>> > On Jul 28, 2022, at 11:08 AM, Hugo Ferreira <hferreira...@gmail.com>
>> wrote:
>> >
>> > Hi,
>> >
>> > When I compile my Apache Royale application, the compilar injects a
>> > particular style: * { font-size: 12px }
>> > This afftects my report engine Texts (Labels) because they don't have a
>> > defined style. A text in this report engine is a div (without style)
>> inside
>> > a td with a style, so the text (div) inherits from the Royale * style,
>> > dont' allow me the have different report text styles.
>> >
>> > There is a way to compile (I'm using VS Code) and ignore this style (*)
>> ?
>> >
>> > Regards,
>> > Hugo.
>>
>>

Reply via email to