2018-06-21 15:16:53 +03:00
|
|
|
import { Component, Input, ViewChild } from '@angular/core';
|
|
|
|
|
import { NbPopoverDirective } from '@nebular/theme';
|
2017-09-20 12:54:26 +03:00
|
|
|
import { NbJSThemeOptions } from '@nebular/theme/services/js-themes/theme.options';
|
2018-06-21 15:16:53 +03:00
|
|
|
|
|
|
|
|
import { ThemeSwitcherListComponent } from './themes-switcher-list/themes-switcher-list.component';
|
2017-09-20 12:54:26 +03:00
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
selector: 'ngx-theme-switcher',
|
2018-06-21 15:16:53 +03:00
|
|
|
templateUrl: './theme-switcher.component.html',
|
|
|
|
|
styleUrls: ['./theme-switcher.component.scss'],
|
2017-09-20 12:54:26 +03:00
|
|
|
})
|
2018-06-21 15:16:53 +03:00
|
|
|
export class ThemeSwitcherComponent {
|
|
|
|
|
@ViewChild(NbPopoverDirective) popover: NbPopoverDirective;
|
2017-09-20 12:54:26 +03:00
|
|
|
|
2018-06-21 15:16:53 +03:00
|
|
|
@Input() showTitle: boolean = true;
|
2017-09-20 12:54:26 +03:00
|
|
|
|
2018-06-21 15:16:53 +03:00
|
|
|
switcherListComponent = ThemeSwitcherListComponent;
|
|
|
|
|
theme: NbJSThemeOptions;
|
2017-09-20 12:54:26 +03:00
|
|
|
}
|