[ALOY-1035] Themes: Assets images not being applied as expected
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-06-03T14:34:14.000+0000 |
Affected Version/s | Alloy 1.4.0 |
Fix Version/s | Alloy 1.4.0 |
Components | Styling, Tooling |
Labels | qe-3.3.0, qe-testadded, regression |
Reporter | Federico Casali |
Assignee | Tim Poulsen |
Created | 2014-06-02T21:13:25.000+0000 |
Updated | 2014-06-06T22:01:32.000+0000 |
Description
Problem description
Themes Assets images are not properly used when the image files are put in the "themes/Steps to reproduce
Get the code from https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-577 1. Run the App on iOS, Android or MobileWeb Result: two Alloy Icons are displayed (on a red background, as correctly applied from the themes/red/styles/app.tss). Icons are the red.png and blue.png icons inside "app/assets/" folder. See screenshot_140_red.png Expected result: a different icon should be displayed on top (the one in "app/themes/red/assets/red.png"). See screenshot_131_red.png 2. Change config.json file:
"theme":"red"
to
"theme":"blue"
then build and run.
Result: same two Alloy Icons are displayed (on a blue background, as correctly applied from the themes/blue/styles/app.tss) . Icons are the red.png and blue.png icons inside "app/assets/" folder. See screenshot_140_blue.png
Expected result: a different icon should be displayed on bottom (the one in "app/themes/blue/assets/blue.png"). See screenshot_131_blue.png
Further steps
As explained in the description, the issue seems to be reproducible only when the Assets image files are put in the "app/themes/assets/" folder. If put in a specific platform folder, for example iphone, android or mobileweb, they work as expected. 3. After step #2, create a platform folder, for example: "app/themes/blue/assets/mobileweb". Run on MobileWeb. Result: Image in "app/themes/blue/assets/mobileweb/" folder is correctly displayed (just like screenshot_131_blue.png)Attachments
File | Date | Size |
---|---|---|
screenshot_131_blue.png | 2014-06-02T21:13:25.000+0000 | 41083 |
screenshot_131_red.png | 2014-06-02T21:13:25.000+0000 | 66176 |
screenshot_140_blue.png | 2014-06-02T21:13:25.000+0000 | 35076 |
screenshot_140_red.png | 2014-06-02T21:13:25.000+0000 | 58734 |