mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-23 11:16:10 +02:00
* Some solid progress on themeing / customization via theme.json
This commit is contained in:
parent
767319e234
commit
34bf823f1f
8 changed files with 98 additions and 32 deletions
|
@ -507,10 +507,22 @@ ViewController.prototype.loadFromMenuConfig = function(options, cb) {
|
|||
callback(err);
|
||||
});
|
||||
},
|
||||
function applyThemeCustomization(callback) {
|
||||
if(_.isObject(formConfig)) {
|
||||
menuUtil.applyThemeCustomization({
|
||||
name : self.client.currentMenuModule.menuName,
|
||||
client : self.client,
|
||||
configMci : formConfig.mci,
|
||||
});
|
||||
}
|
||||
|
||||
//console.log(test)
|
||||
|
||||
callback(null);
|
||||
},
|
||||
function applyViewConfiguration(callback) {
|
||||
//
|
||||
// :TODO: need to merge configs from menu -> theme (specific) -> theme (default) -> defaults
|
||||
|
||||
if(_.isObject(formConfig)) {
|
||||
self.applyViewConfig(formConfig, function configApplied(err, info) {
|
||||
initialFocusId = info.initialFocusId;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue