From 1409533337f1c11efc4bf97f02c791f704f90418 Mon Sep 17 00:00:00 2001 From: insanity Date: Mon, 16 Apr 2018 15:45:47 +0900 Subject: [PATCH] theme --- .../layout/menu/app.menu.component.ts | 7 -- .../layout/topbar/app.topbar.component.html | 81 ++++++++++++++----- src/app/pages/pages.component.ts | 9 +++ 3 files changed, 70 insertions(+), 27 deletions(-) diff --git a/src/app/commons/component/layout/menu/app.menu.component.ts b/src/app/commons/component/layout/menu/app.menu.component.ts index fa7c7a2..01c60a9 100644 --- a/src/app/commons/component/layout/menu/app.menu.component.ts +++ b/src/app/commons/component/layout/menu/app.menu.component.ts @@ -39,11 +39,4 @@ export class AppMenuComponent implements OnInit { ]; } - changeTheme(theme) { - const themeLink: HTMLLinkElement = document.getElementById('theme-css'); - const layoutLink: HTMLLinkElement = document.getElementById('layout-css'); - - themeLink.href = 'assets/theme/theme-' + theme + '.css'; - layoutLink.href = 'assets/layout/css/layout-' + theme + '.css'; - } } diff --git a/src/app/commons/component/layout/topbar/app.topbar.component.html b/src/app/commons/component/layout/topbar/app.topbar.component.html index 4d22119..18cf8a0 100644 --- a/src/app/commons/component/layout/topbar/app.topbar.component.html +++ b/src/app/commons/component/layout/topbar/app.topbar.component.html @@ -17,8 +17,7 @@