[ALOY-628] When merging <viewname>.tss styles, platform specific Themes styles are not having priority over platform specific generic styles
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-04-23T03:21:00.000+0000 |
Affected Version/s | Alloy 1.1.1, Alloy 1.0.0 |
Fix Version/s | Alloy 1.2.0, Alloy 1.1.2, 2013 Sprint 09 |
Components | XML |
Labels | n/a |
Reporter | Federico Casali |
Assignee | Tony Lukasavage |
Created | 2013-04-18T22:29:03.000+0000 |
Updated | 2013-05-01T14:56:31.000+0000 |
Description
Problem description
Platform specific styles Themes should have always precedence over other styles during the merge process. This is the correct behavior when using 'app.tss' global style. The one defined in the Theme/styles is being reflected correctly. However, when using a style file matching a view.xml file, the generic specific-platform style is being used.See the first sample code attached - app_APP-TSS.zip
In this sample, all styles are handled using 'app.tss' files. Themes merging behave correctly and theme's app.tss settings get the precedence. 1. Run on Android Result: blu background and orange view are shown, as defined in themes/dark/styles/app.tss 2. Run on iOS: Result: purple background and green view are shown, as defined in themes/green/styles/app.tssSee the second sample code attached - app_INDEX-TSS.zip
In this sample, styles are handled using 'index.tss' files and 'app.tss' files. 'index.tss' files defined in specific-platform folders under 'styles/Attachments
File | Date | Size |
---|---|---|
app_APP-TSS.zip | 2013-04-18T22:29:03.000+0000 | 3810353 |
app_INDEX-TSS.zip | 2013-04-18T22:29:03.000+0000 | 3811012 |