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

This commit is contained in:
Francis Lachapelle
2022-05-25 13:35:27 -04:00
parent 36303bef9d
commit cddd016e53
2 changed files with 13 additions and 3 deletions

View File

@@ -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