mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-03-08 06:32:35 +01:00
fix(demo): refactor js theme using
This commit is contained in:
parent
672615b710
commit
b772882cd6
28 changed files with 561 additions and 492 deletions
|
|
@ -32,12 +32,7 @@ export class D3AdvancedPieComponent {
|
|||
constructor(private theme: NgaThemeService) {
|
||||
this.theme.getJsTheme().subscribe(config => {
|
||||
this.colorScheme = {
|
||||
domain: [
|
||||
config.d3AdvancedPieColor1,
|
||||
config.d3AdvancedPieColor2,
|
||||
config.d3AdvancedPieColor3,
|
||||
config.d3AdvancedPieColor4,
|
||||
],
|
||||
domain: (<any>config.variables.d3).advancedPie,
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -77,12 +77,7 @@ export class D3AreaStackComponent {
|
|||
constructor(private theme: NgaThemeService) {
|
||||
this.theme.getJsTheme().subscribe(config => {
|
||||
this.colorScheme = {
|
||||
domain: [
|
||||
config.d3AreaStackColor1,
|
||||
config.d3AreaStackColor2,
|
||||
config.d3AreaStackColor3,
|
||||
config.d3AreaStackColor4,
|
||||
],
|
||||
domain: (<any>config.variables.d3).areaStack,
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ export class D3BarComponent {
|
|||
constructor(private theme: NgaThemeService) {
|
||||
this.theme.getJsTheme().subscribe(config => {
|
||||
this.colorScheme = {
|
||||
domain: [config.d3BarColor1, config.d3BarColor2, config.d3BarColor3, config.d3BarColor4],
|
||||
domain: (<any>config.variables.d3).bar,
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ export class D3LineComponent {
|
|||
constructor(private theme: NgaThemeService) {
|
||||
this.theme.getJsTheme().subscribe(config => {
|
||||
this.colorScheme = {
|
||||
domain: [config.d3LineColor1, config.d3LineColor2, config.d3LineColor3, config.d3LineColor4],
|
||||
domain: (<any>config.variables.d3).line,
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ export class D3PieComponent {
|
|||
constructor(private theme: NgaThemeService) {
|
||||
this.theme.getJsTheme().subscribe(config => {
|
||||
this.colorScheme = {
|
||||
domain: [config.d3PieColor1, config.d3PieColor2, config.d3PieColor3, config.d3PieColor4],
|
||||
domain: (<any>config.variables.d3).pie,
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ export class D3PolarComponent {
|
|||
constructor(private theme: NgaThemeService) {
|
||||
this.theme.getJsTheme().subscribe(config => {
|
||||
this.colorScheme = {
|
||||
domain: [config.d3PolarColor1, config.d3PolarColor2, config.d3PolarColor3, config.d3PolarColor4],
|
||||
domain: (<any>config.variables.d3).polar,
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue