2018-02-19 19:56:45 +08:00
|
|
|
/* -*- Mode: javascript; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
|
|
|
|
(function() {
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
angular.module('SOGo.Common')
|
|
|
|
.config(configure)
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ngInject
|
|
|
|
*/
|
|
|
|
configure.$inject = ['$mdThemingProvider'];
|
|
|
|
function configure($mdThemingProvider) {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Define the Alternative theme
|
|
|
|
*/
|
|
|
|
$mdThemingProvider.theme('mailcow')
|
2018-04-26 19:51:55 +08:00
|
|
|
.primaryPalette('blue', {
|
2018-02-19 19:56:45 +08:00
|
|
|
'default': '700', // top toolbar
|
2018-04-26 19:51:55 +08:00
|
|
|
'hue-1': '500',
|
|
|
|
'hue-2': '700', // sidebar toolbar
|
2018-02-19 19:56:45 +08:00
|
|
|
'hue-3': 'A700'
|
|
|
|
})
|
2018-04-26 19:51:55 +08:00
|
|
|
.accentPalette('blue', {
|
|
|
|
'default': '700', // fab buttons
|
2018-02-19 19:56:45 +08:00
|
|
|
'hue-1': '50', // center list toolbar
|
2018-04-26 19:51:55 +08:00
|
|
|
'hue-2': '600',
|
2018-02-19 19:56:45 +08:00
|
|
|
'hue-3': 'A700'
|
|
|
|
})
|
|
|
|
.backgroundPalette('grey', {
|
|
|
|
'default': '50', // center list background
|
|
|
|
'hue-1': '100',
|
|
|
|
'hue-2': '200',
|
|
|
|
'hue-3': '300'
|
|
|
|
});
|
|
|
|
$mdThemingProvider.theme('default')
|
2018-04-26 19:51:55 +08:00
|
|
|
.primaryPalette('blue', {
|
2018-02-19 19:56:45 +08:00
|
|
|
'default': '700', // top toolbar
|
2018-04-26 19:51:55 +08:00
|
|
|
'hue-1': '500',
|
|
|
|
'hue-2': '700', // sidebar toolbar
|
2018-02-19 19:56:45 +08:00
|
|
|
'hue-3': 'A700'
|
|
|
|
})
|
2018-04-26 19:51:55 +08:00
|
|
|
.accentPalette('blue', {
|
|
|
|
'default': '700', // fab buttons
|
2018-02-19 19:56:45 +08:00
|
|
|
'hue-1': '50', // center list toolbar
|
2018-04-26 19:51:55 +08:00
|
|
|
'hue-2': '600',
|
2018-02-19 19:56:45 +08:00
|
|
|
'hue-3': 'A700'
|
|
|
|
})
|
|
|
|
.backgroundPalette('grey', {
|
|
|
|
'default': '50', // center list background
|
|
|
|
'hue-1': '100',
|
|
|
|
'hue-2': '200',
|
|
|
|
'hue-3': '300'
|
|
|
|
});
|
|
|
|
|
|
|
|
$mdThemingProvider.setDefaultTheme('mailcow');
|
|
|
|
$mdThemingProvider.generateThemesOnDemand(false);
|
|
|
|
}
|
|
|
|
})();
|