Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 1 | /* EXAMPLE - EXAMPLE - EXAMPLE - EXAMPLE - EXAMPLE - EXAMPLE - EXAMPLE |
| 2 | (function() { |
| 3 | 'use strict'; |
| 4 | angular.module('SOGo.Common') |
| 5 | .config(configure) |
| 6 | |
| 7 | configure.$inject = ['$mdThemingProvider']; |
| 8 | function configure($mdThemingProvider) { |
| 9 | var greyMap = $mdThemingProvider.extendPalette('grey', { |
| 10 | '200': 'F5F5F5', |
| 11 | '300': 'E5E5E5', |
| 12 | '1000': '4C566A' |
| 13 | }); |
| 14 | var greenCow = $mdThemingProvider.extendPalette('green', { |
| 15 | '600': 'E5E5E5' |
| 16 | }); |
| 17 | $mdThemingProvider.definePalette('frost-grey', greyMap); |
| 18 | $mdThemingProvider.definePalette('green-cow', greenCow); |
| 19 | $mdThemingProvider.theme('default') |
| 20 | .primaryPalette('green-cow', { |
| 21 | 'default': '400', |
| 22 | 'hue-1': '400', |
| 23 | 'hue-2': '600', |
| 24 | 'hue-3': 'A700' |
| 25 | }) |
| 26 | .accentPalette('green', { |
| 27 | 'default': '600', |
| 28 | 'hue-1': '300', |
| 29 | 'hue-2': '300', |
| 30 | 'hue-3': 'A700' |
| 31 | }) |
| 32 | .backgroundPalette('frost-grey'); |
| 33 | $mdThemingProvider.generateThemesOnDemand(false); |
| 34 | } |
| 35 | })(); |
| 36 | */ |