fix(administration(js)): add rgba colors to theme preview

This commit is contained in:
Francis Lachapelle committed 2022-05-25 13:35:27 -04:00
1 parent 36303bef9d
commit cddd016e53
2 files changed
+13 -3

No files matched your search

@@ -25,10 +25,11 @@
/**
* @ngInject
*/
ThemePreviewController.$inject = ['$mdTheming'];
function ThemePreviewController($mdTheming) {
ThemePreviewController.$inject = ['$mdTheming', '$mdColors'];
function ThemePreviewController($mdTheming, $mdColors) {
this.defaultTheme = $mdTheming.THEMES[$mdTheming.defaultTheme()];
this.jsonDefaultTheme = JSON.stringify(this.defaultTheme, undefined, 2);
this.getColor = $mdColors.getThemeColor;
}
angular