import { Component , OnInit , ViewEncapsulation } from '@angular/core' ; import { ColorScheme } from '../../core/color-scheme' ; import { AppearanceService } from '../../services/appearance/appearance.service' ; @ Component ( { selector : 'app-color-scheme-switcher' , host : { style : 'display: block' } , templateUrl : './color-scheme-switcher.component.html' , styleUrls : [ './color-scheme-switcher.component.scss' ] , encapsulation : ViewEncapsulation . None , } ) export class ColorSchemeSwitcherComponent implements OnInit { constructor ( public appearance ) { } public ngOnInit ( ) { } public setColorScheme ( colorScheme ) { this . appearance . selectedColorScheme = colorScheme ; } }