[Themes] Update bundle declarations

Update bundle declarations to provide a THEME constant for
use in filtering out theme-specific CSS additions.
This commit is contained in:
Victor Woeltjen
2015-11-04 11:53:10 -08:00
parent bda1bf9f9a
commit e32eb11e60
3 changed files with 40 additions and 23 deletions

View File

@@ -18,7 +18,7 @@
"runs": [ "runs": [
{ {
"implementation": "StyleSheetLoader.js", "implementation": "StyleSheetLoader.js",
"depends": [ "stylesheets[]", "$document" ] "depends": [ "stylesheets[]", "$document", "THEME" ]
} }
], ],
"stylesheets": [ "stylesheets": [
@@ -194,6 +194,11 @@
{ {
"key": "MCT_SCROLL_Y_ATTRIBUTE", "key": "MCT_SCROLL_Y_ATTRIBUTE",
"value": "mctScrollY" "value": "mctScrollY"
},
{
"key": "THEME",
"value": "unspecified",
"priority": "fallback"
} }
], ],
"containers": [ "containers": [

View File

@@ -7,6 +7,12 @@
"stylesheetUrl": "css/theme-espresso.css", "stylesheetUrl": "css/theme-espresso.css",
"priority": 1000 "priority": 1000
} }
],
"constants": [
{
"key": "THEME",
"value": "espresso"
}
] ]
} }
} }

View File

@@ -1,5 +1,5 @@
{ {
"name": "Sonw", "name": "Snow",
"description": "Snow theme: light and cool", "description": "Snow theme: light and cool",
"extensions": { "extensions": {
"stylesheets": [ "stylesheets": [
@@ -7,6 +7,12 @@
"stylesheetUrl": "css/theme-snow.css", "stylesheetUrl": "css/theme-snow.css",
"priority": 1000 "priority": 1000
} }
],
"constants": [
{
"key": "THEME",
"value": "snow"
}
] ]
} }
} }