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

pull/91/head
Francis Lachapelle 2015-01-16 23:22:59 -05:00
parent f180617a3f
commit b9414a77ab
2 changed files with 9 additions and 8 deletions

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(){

View File

@ -164,13 +164,6 @@
allowedTagsPattern: /([\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+\.)*[\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+@((((([a-z0-9]{1}[a-z0-9\-]{0,62}[a-z0-9]{1})|[a-z])\.)+[a-z]{2,})|(\d{1,3}\.){3}\d{1,3}(\:\d{1,5})?)/i
});
}])
//todo : define complete custom themes (light and dark) with SOGo green as accent-color
.config(function($mdThemingProvider) {
$mdThemingProvider.theme('default')
.primaryColor('grey', {
'default': '800'
});
})
.run(function($rootScope) {
$rootScope.$on('$routeChangeError', function(event, current, previous, rejection) {