general settings is modified
This commit is contained in:
parent
297baa1771
commit
7e91df9a5d
|
@ -32,12 +32,6 @@
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</mat-tab>
|
</mat-tab>
|
||||||
</mat-tab-group>
|
</mat-tab-group>
|
||||||
|
|
||||||
<div class="brightness">
|
|
||||||
<span>기본값</span>
|
|
||||||
<span>어둡게</span>
|
|
||||||
<span>밝게</span>
|
|
||||||
</div>
|
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
|
|
||||||
<mat-divider></mat-divider>
|
<mat-divider></mat-divider>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
::ng-deep .mat-list-base {
|
::ng-deep .mat-list-base {
|
||||||
.theme-select.mat-list-item {
|
.theme-select.mat-list-item {
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 200px;
|
height: 160px;
|
||||||
.mat-list-item-content {
|
.mat-list-item-content {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,7 @@ import {
|
||||||
EventEmitter
|
EventEmitter
|
||||||
} from '@angular/core';
|
} from '@angular/core';
|
||||||
import { FormGroup, FormBuilder } from '@angular/forms';
|
import { FormGroup, FormBuilder } from '@angular/forms';
|
||||||
|
import { MatTabChangeEvent } from '@angular/material';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ucap-settings-general',
|
selector: 'ucap-settings-general',
|
||||||
|
@ -25,7 +26,19 @@ export class GeneralComponent implements OnInit {
|
||||||
|
|
||||||
ngOnInit() {}
|
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);
|
this.selectTheme.emit(theme);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user