[ALOY-1298] Override Alloy theme styles in the app's app/styles folder over the alloy themes
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Styling, Themes |
Labels | n/a |
Reporter | Ricardo Ramirez |
Assignee | Unknown |
Created | 2015-08-14T14:05:23.000+0000 |
Updated | 2018-03-25T21:58:31.000+0000 |
Description
Issue Description
The themes on app have most precedence than the app/styles folder.Expected behavior
The user need a hierarchical behavior to override the base theme's styles with app specific ones at the app/styles level without changing the theme itself, you can take a look on web technologies because this is how they work over themes. More specifically, titanium should follow this procedure based on some web technologies: 1.Looks for a file in the current app/style directory that matches the view. If the view is “page-1,” then titanium should look for a file called page-1. 2.If the styles file or is missing or not exist, titanium should look for a template file called “page-1” in the themes. 3.If the file is missing, titanium will look for a generic style in, app/styles/app.tss file. 4.If the style does not exist, titanium will look for a generic style app.tss file on the theme.Steps to Replicate:
1. Override the app folder attached on a new alloy project 2. View the behavior on the .container color in the app/styles and the theme styles on index.tss Additional Note: This behavior was tested on: Release 4.1.0 Release 4.0.0 Release 3.5.1Attachments
File | Date | Size |
---|---|---|
app.zip | 2015-08-14T14:52:38.000+0000 | 7468 |