general settings is modified

This commit is contained in:
병준 박 2019-11-26 15:08:00 +09:00
parent 297baa1771
commit 7e91df9a5d
3 changed files with 15 additions and 8 deletions

View File

@ -32,12 +32,6 @@
</ng-template>
</mat-tab>
</mat-tab-group>
<div class="brightness">
<span>기본값</span>
<span>어둡게</span>
<span>밝게</span>
</div>
</mat-list-item>
<mat-divider></mat-divider>

View File

@ -1,7 +1,7 @@
::ng-deep .mat-list-base {
.theme-select.mat-list-item {
position: relative;
height: 200px;
height: 160px;
.mat-list-item-content {
flex-direction: column;
}

View File

@ -6,6 +6,7 @@ import {
EventEmitter
} from '@angular/core';
import { FormGroup, FormBuilder } from '@angular/forms';
import { MatTabChangeEvent } from '@angular/material';
@Component({
selector: 'ucap-settings-general',
@ -25,7 +26,19 @@ export class GeneralComponent implements OnInit {
ngOnInit() {}
onSelectedTabChange(theme: string) {
onSelectedTabChange(e: MatTabChangeEvent) {
let theme = 'theme-default';
switch (e.index) {
case 0:
theme = 'theme-default';
break;
case 1:
theme = 'theme-lgRed';
break;
default:
break;
}
this.selectTheme.emit(theme);
}