2018-02-19 12:56:45 +01: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) {
|
|
|
|
|
2018-02-22 09:20:46 +01:00
|
|
|
|
2018-02-19 12:56:45 +01:00
|
|
|
/**
|
|
|
|
* Define the Alternative theme
|
|
|
|
*/
|
|
|
|
$mdThemingProvider.theme('mailcow')
|
2018-02-22 09:20:46 +01:00
|
|
|
.primaryPalette('green', {
|
|
|
|
'default': '600', // top toolbar
|
|
|
|
'hue-1': '200',
|
2018-02-19 12:56:45 +01:00
|
|
|
'hue-2': '600', // sidebar toolbar
|
|
|
|
'hue-3': 'A700'
|
|
|
|
})
|
2018-02-22 09:20:46 +01:00
|
|
|
.accentPalette('green', {
|
|
|
|
'default': '600', // fab buttons
|
2018-02-19 12:56:45 +01:00
|
|
|
'hue-1': '50', // center list toolbar
|
|
|
|
'hue-2': '400',
|
|
|
|
'hue-3': 'A700'
|
|
|
|
})
|
|
|
|
.backgroundPalette('grey', {
|
|
|
|
'default': '50', // center list background
|
2018-02-22 09:20:46 +01:00
|
|
|
'hue-1': '50',
|
|
|
|
'hue-2': '100',
|
|
|
|
'hue-3': '100'
|
2018-02-19 12:56:45 +01:00
|
|
|
});
|
|
|
|
$mdThemingProvider.theme('default')
|
2018-02-22 09:20:46 +01:00
|
|
|
.primaryPalette('green', {
|
|
|
|
'default': '600', // top toolbar
|
|
|
|
'hue-1': '200',
|
2018-02-19 12:56:45 +01:00
|
|
|
'hue-2': '600', // sidebar toolbar
|
|
|
|
'hue-3': 'A700'
|
|
|
|
})
|
2018-02-22 09:20:46 +01:00
|
|
|
.accentPalette('green', {
|
|
|
|
'default': '600', // fab buttons
|
2018-02-19 12:56:45 +01:00
|
|
|
'hue-1': '50', // center list toolbar
|
|
|
|
'hue-2': '400',
|
|
|
|
'hue-3': 'A700'
|
|
|
|
})
|
|
|
|
.backgroundPalette('grey', {
|
|
|
|
'default': '50', // center list background
|
2018-02-22 09:20:46 +01:00
|
|
|
'hue-1': '50',
|
|
|
|
'hue-2': '100',
|
|
|
|
'hue-3': '100'
|
2018-02-19 12:56:45 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
$mdThemingProvider.setDefaultTheme('mailcow');
|
|
|
|
$mdThemingProvider.generateThemesOnDemand(false);
|
|
|
|
}
|
|
|
|
})();
|