Advertisement
Guest User

Untitled

a guest
Oct 17th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. angular.module("cveFrontEndConfig", ['cveFrontEndConfigTheme', 'cveFrontEndConfigDate']);
  2.  
  3.  
  4. /**
  5. *
  6. * Theme configuration
  7. *
  8. */
  9. angular.module("cveFrontEndConfigTheme", ['cveConfig'])
  10. .config(function ($mdThemingProvider) {
  11. // Extend the red theme with a different color and make the contrast color black instead of white.
  12. // For example: raised button text will be black instead of white.
  13. // Register the new color palette map with the name <code>neonRed</code>
  14. $mdThemingProvider.definePalette('mdcvepallete', {
  15. '50': 'e8ecf7',
  16. '100': 'c5ceeb',
  17. '200': '9eaede',
  18. '300': '778ed0',
  19. '400': '5975c6',
  20. '500': '3c5dbc',
  21. '600': '3655b6',
  22. '700': '2e4bad',
  23. '800': '2741a5',
  24. '900': '1a3097',
  25. 'A100': 'ced5ff',
  26. 'A200': '9baaff',
  27. 'A400': '687fff',
  28. 'A700': '4e69ff',
  29. 'contrastDefaultColor': 'light',
  30. 'contrastDarkColors': [
  31. '50',
  32. '100',
  33. '200',
  34. '300',
  35. 'A100',
  36. 'A200',
  37. 'A400'
  38. ],
  39. 'contrastLightColors': [
  40. '400',
  41. '500',
  42. '600',
  43. '700',
  44. '800',
  45. '900',
  46. 'A700'
  47. ]
  48. })
  49.  
  50.  
  51. // Use that theme for the primary intentions
  52. $mdThemingProvider.theme('default').primaryPalette('mdcvepallete');
  53. });
  54.  
  55.  
  56. /**
  57. *
  58. * Date format
  59. *
  60. */
  61. angular.module("cveFrontEndConfigDate", ['cveConfig'])
  62. .config(function ($mdDateLocaleProvider) {
  63. $mdDateLocaleProvider.formatDate = function (date) {
  64. return date ? moment(date).format('DD/MM/YYYY') : '';
  65. };
  66. });
  67.  
  68.  
  69.  
  70. /**
  71. *
  72. * Base configurations from @ConsularVisaExpress
  73. *
  74. */
  75. angular.module("cveConfig", ['ngMaterial']);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement