Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- angular.module("cveFrontEndConfig", ['cveFrontEndConfigTheme', 'cveFrontEndConfigDate']);
- /**
- *
- * Theme configuration
- *
- */
- angular.module("cveFrontEndConfigTheme", ['cveConfig'])
- .config(function ($mdThemingProvider) {
- // Extend the red theme with a different color and make the contrast color black instead of white.
- // For example: raised button text will be black instead of white.
- // Register the new color palette map with the name <code>neonRed</code>
- $mdThemingProvider.definePalette('mdcvepallete', {
- '50': 'e8ecf7',
- '100': 'c5ceeb',
- '200': '9eaede',
- '300': '778ed0',
- '400': '5975c6',
- '500': '3c5dbc',
- '600': '3655b6',
- '700': '2e4bad',
- '800': '2741a5',
- '900': '1a3097',
- 'A100': 'ced5ff',
- 'A200': '9baaff',
- 'A400': '687fff',
- 'A700': '4e69ff',
- 'contrastDefaultColor': 'light',
- 'contrastDarkColors': [
- '50',
- '100',
- '200',
- '300',
- 'A100',
- 'A200',
- 'A400'
- ],
- 'contrastLightColors': [
- '400',
- '500',
- '600',
- '700',
- '800',
- '900',
- 'A700'
- ]
- })
- // Use that theme for the primary intentions
- $mdThemingProvider.theme('default').primaryPalette('mdcvepallete');
- });
- /**
- *
- * Date format
- *
- */
- angular.module("cveFrontEndConfigDate", ['cveConfig'])
- .config(function ($mdDateLocaleProvider) {
- $mdDateLocaleProvider.formatDate = function (date) {
- return date ? moment(date).format('DD/MM/YYYY') : '';
- };
- });
- /**
- *
- * Base configurations from @ConsularVisaExpress
- *
- */
- angular.module("cveConfig", ['ngMaterial']);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement