Added minimal theme.

This commit is contained in:
Jonathan Bernard
2017-11-29 00:25:25 -06:00
parent d4b359e49b
commit 3a6888a84a
8 changed files with 225 additions and 1 deletions

29
themes/minimal/index.js Normal file
View File

@@ -0,0 +1,29 @@
(function() {
var U = window.uestibulum;
var T = {
name: 'minimal',
init: function(uiView) {
// Logic to setup the theme
uiView.$el.addClass('theme-' + uiView.theme.name);
},
render: function(uiView) {
// custom render logic
uiView.loginView.render();
uiView.$('input[name="pwd"]').focus();
},
unload: function(uiView) {
// Logic to tear down the theme
uiView.$el.removeClass('theme-' + uiView.theme.name);
},
getGreeting: function() { return ''; }
};
U.themes['minimal'] = T;
})();