Clean style creations ADF (#7385)

This commit is contained in:
Eugenio Romano
2021-11-29 16:14:26 +00:00
committed by GitHub
parent 684b1e7d65
commit ce43d0a766
27 changed files with 161 additions and 158 deletions

View File

@@ -1,7 +1,7 @@
require('dotenv').config();
var PROXY_HOST_ADF = process.env.PROXY_HOST_ADF;
console.log('PROXY_HOST_ADF' + PROXY_HOST_ADF);
module.exports = {
"/alfresco": {
"target": (PROXY_HOST_ADF || "http://localhost:8080"),

View File

@@ -122,7 +122,7 @@ export class ThemePickerComponent {
} else {
this.currentTheme = this._getCurrentThemeFromHref(theme.href);
this.styleManager.setStyle('theme', `assets/prebuilt-themes/${theme.href}`);
this.styleManager.setStyle('theme', theme.href);
if (this.currentTheme) {
this._themeStorage.storeTheme(this.currentTheme);

View File

@@ -1,5 +1,4 @@
@import '~@angular/material/theming';
@import '../../lib/core/styles/index';
@include mat-core($alfresco-typography);
@@ -7,10 +6,15 @@
$primary: mat-palette($alfresco-accent-orange);
$accent: mat-palette($alfresco-accent-purple);
$warn: mat-palette($alfresco-warn);
$theme: mat-light-theme($primary, $accent, $warn);
$theme: mat-light-theme((
color: (
primary: $primary,
accent: $accent,
)
));
@include angular-material-theme($theme);
@include adf-core-theme($theme);
@include alfresco-material-theme($theme);
body, html {
margin: 0;

View File

@@ -1,5 +1,4 @@
@import '~@angular/material/theming';
@import '~@alfresco/adf-core/theming';
@include mat-core($alfresco-typography);
@@ -7,10 +6,15 @@
$primary: mat-palette($alfresco-accent-orange);
$accent: mat-palette($alfresco-accent-purple);
$warn: mat-palette($alfresco-warn);
$theme: mat-light-theme($primary, $accent, $warn);
$theme: mat-light-theme((
color: (
primary: $primary,
accent: $accent,
)
));
@include angular-material-theme($theme);
@include adf-core-theme($theme);
@include alfresco-material-theme($theme);
body, html {
margin: 0;