Move app theming from index to app view (#1479)
Apply theming one level higher so it applies to the debug log. // FREEBIE
This commit is contained in:
parent
fe4738a6e8
commit
48f625c392
5 changed files with 26 additions and 25 deletions
|
@ -7,11 +7,20 @@
|
|||
initialize: function(options) {
|
||||
this.inboxView = null;
|
||||
this.installView = null;
|
||||
this.applyTheme();
|
||||
},
|
||||
events: {
|
||||
'click .openInstaller': 'openInstaller',
|
||||
'click .openStandalone': 'openStandalone',
|
||||
'openInbox': 'openInbox',
|
||||
'change-theme': 'applyTheme'
|
||||
},
|
||||
applyTheme: function() {
|
||||
var theme = storage.get('theme-setting') || 'android';
|
||||
this.$el.removeClass('ios')
|
||||
.removeClass('android-dark')
|
||||
.removeClass('android')
|
||||
.addClass(theme);
|
||||
},
|
||||
openView: function(view) {
|
||||
this.el.innerHTML = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue