This is an automated email from the ASF dual-hosted git repository.
joshtynjala pushed a commit to branch examples/TDJ_localresources
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/examples/TDJ_localresources by
this push:
new 97b4216b41 JewelTheme: fix lato js-include
97b4216b41 is described below
commit 97b4216b41ec593d14abeb668c472ea33915ffff
Author: Josh Tynjala <[email protected]>
AuthorDate: Mon Mar 31 16:03:38 2025 -0700
JewelTheme: fix lato js-include
TourDeJewel: use JewelTheme.swc instead of CSS
---
examples/jewel/TourDeJewel/asconfig.json | 2 +-
.../themes/JewelTheme/src/main/config/compile-swf-config.xml | 10 ++++++++++
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/examples/jewel/TourDeJewel/asconfig.json
b/examples/jewel/TourDeJewel/asconfig.json
index 357efaa9ae..d9d2f32167 100644
--- a/examples/jewel/TourDeJewel/asconfig.json
+++ b/examples/jewel/TourDeJewel/asconfig.json
@@ -27,7 +27,7 @@
],
"source-map": true,
"html-template":
"src/main/resources/jewel-example-index-template.html",
- "theme":
"${royalelib}/themes/JewelTheme/src/main/resources/defaults.css"
+ "theme": "${royalelib}/libs/JewelTheme.swc"
},
"copySourcePathAssets": true,
"additionalOptions": [
diff --git
a/frameworks/themes/JewelTheme/src/main/config/compile-swf-config.xml
b/frameworks/themes/JewelTheme/src/main/config/compile-swf-config.xml
index a698445451..d0394de55d 100644
--- a/frameworks/themes/JewelTheme/src/main/config/compile-swf-config.xml
+++ b/frameworks/themes/JewelTheme/src/main/config/compile-swf-config.xml
@@ -85,6 +85,16 @@
</include-classes>
<target-player>${playerglobal.version}</target-player>
+
+ <js-include-css>
+ <path-element>../assembly/third-party/lato/Lato.css</path-element>
+ </js-include-css>
+ <js-include-asset>
+
<path-element>../assembly/third-party/lato/Lato-Regular.ttf</path-element>
+ <path-element>../assembly/third-party/lato/Lato-Bold.ttf</path-element>
+
<path-element>../assembly/third-party/lato/Lato-Italic.ttf</path-element>
+
<path-element>../assembly/third-party/lato/Lato-BoldItalic.ttf</path-element>
+ </js-include-asset>
</royale-config>