From 64b4b05ede6f357b7e65b5a5fa9214091152592f Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Mon, 27 Nov 2023 14:04:39 +0300 Subject: [PATCH] Add theme to root --- src/app/showcase/layout/app.main.component.ts | 6 +++++- .../layout/doc/app.docapitable.component.ts | 13 +++++++++---- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/app/showcase/layout/app.main.component.ts b/src/app/showcase/layout/app.main.component.ts index 42e41aacd9a..8f763bf77bc 100644 --- a/src/app/showcase/layout/app.main.component.ts +++ b/src/app/showcase/layout/app.main.component.ts @@ -12,7 +12,7 @@ import { AppTopBarComponent } from './topbar/app.topbar.component'; @Component({ selector: 'app-main', template: ` -
+
@@ -52,6 +52,10 @@ export class AppMainComponent { return this.configService.state.menuActive; } + get theme(): string { + return this.configService.config.theme; + } + get containerClass() { return { 'layout-news-active': this.isNewsActive, diff --git a/src/app/showcase/layout/doc/app.docapitable.component.ts b/src/app/showcase/layout/doc/app.docapitable.component.ts index 6e28b847ff3..a380380cc78 100644 --- a/src/app/showcase/layout/doc/app.docapitable.component.ts +++ b/src/app/showcase/layout/doc/app.docapitable.component.ts @@ -1,6 +1,7 @@ import { Location } from '@angular/common'; -import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, ViewContainerRef } from '@angular/core'; +import { ChangeDetectionStrategy, Component, Input, ViewContainerRef } from '@angular/core'; import { Router } from '@angular/router'; +import { AppConfigService } from '../../service/appconfigservice'; @Component({ selector: 'app-docapitable', @@ -53,8 +54,8 @@ import { Router } from '@angular/router';