Move md theming config to ui.js (SOGo.UI)

This commit is contained in:
Francis Lachapelle committed 2015-01-16 23:22:59 -05:00
1 parent 88d79cd5ff
commit 01df9a41e7
2 files changed
+9 -8

No files matched your search

+9 -1
View File
@@ -11,7 +11,15 @@
(function() {
'use strict';
angular.module('SOGo.UI', ['ngMaterial' ])
.controller('toggleCtrl', ['$scope', '$timeout', '$mdSidenav', '$log', function($scope, $timeout, $mdSidenav, $log) {
.config(function($mdThemingProvider) {
$mdThemingProvider.theme('default')
.primaryColor('grey', {
'default': '800'
});
})
.controller('toggleCtrl', ['$scope', '$timeout', '$mdSidenav', '$log', function($scope, $timeout, $mdSidenav, $log) {
$scope.toggleLeft = function() {
$mdSidenav('left').toggle()
.then(function(){