This commit is contained in:
leejinho 2019-11-25 14:12:57 +09:00
commit 81f871bea3
9 changed files with 96 additions and 30 deletions

View File

@ -20,7 +20,7 @@
}, },
"win": { "win": {
"target": ["zip", "nsis"], "target": ["zip", "nsis"],
"icon": "./dist/ucap-webmessenger-electron/resources/installer/woori_256x256.ico" "icon": "./dist/ucap-webmessenger-electron/resources/image/16_16.ico"
}, },
"linux": { "linux": {
"target": ["AppImage", "deb", "rpm", "zip", "tar.gz"], "target": ["AppImage", "deb", "rpm", "zip", "tar.gz"],

View File

@ -10,21 +10,29 @@
<span class="mdi mdi-settings"></span> <span class="mdi mdi-settings"></span>
일반 일반
</ng-template> </ng-template>
<ucap-settings-general class="setting-category general"></ucap-settings-general>
<ucap-settings-general
class="setting-category general"
(selectTheme)="onSelectTheme($event)"
></ucap-settings-general>
</mat-tab> </mat-tab>
<mat-tab> <mat-tab>
<ng-template mat-tab-label> <ng-template mat-tab-label>
<span class="mdi mdi-lock"></span> <span class="mdi mdi-lock"></span>
개인정보취급방침 개인정보취급방침
</ng-template> </ng-template>
<ucap-settings-privacy class="setting-category"></ucap-settings-privacy> <ucap-settings-privacy
class="setting-category"
></ucap-settings-privacy>
</mat-tab> </mat-tab>
<mat-tab> <mat-tab>
<ng-template mat-tab-label> <ng-template mat-tab-label>
<span class="mdi mdi-bell"></span> <span class="mdi mdi-bell"></span>
알림 알림
</ng-template> </ng-template>
<ucap-settings-notification class="setting-category"></ucap-settings-notification> <ucap-settings-notification
class="setting-category"
></ucap-settings-notification>
</mat-tab> </mat-tab>
<mat-tab> <mat-tab>
<ng-template mat-tab-label> <ng-template mat-tab-label>
@ -38,7 +46,9 @@
<span class="mdi mdi-view-grid-plus"></span> <span class="mdi mdi-view-grid-plus"></span>
사용권한 사용권한
</ng-template> </ng-template>
<ucap-settings-permission class="setting-category"></ucap-settings-permission> <ucap-settings-permission
class="setting-category"
></ucap-settings-permission>
</mat-tab> </mat-tab>
<mat-tab> <mat-tab>
<ng-template mat-tab-label> <ng-template mat-tab-label>
@ -86,11 +96,15 @@
</div> </div>
</mat-card-content> </mat-card-content>
<mat-card-actions class="button-farm flex-row"> <mat-card-actions class="button-farm flex-row">
<button mat-stroked-button (click)="onClickChoice(false)" class="mat-primary"> <button
mat-stroked-button
(click)="onClickChoice(false)"
class="mat-primary"
>
No No
</button> </button>
<button mat-flat-button (click)="onClickChoice(true)" class="mat-primary"> <button mat-flat-button (click)="onClickChoice(true)" class="mat-primary">
Yes Yes
</button> </button>
</mat-card-actions> </mat-card-actions>
</mat-card> </mat-card>

View File

@ -1,4 +1,4 @@
import { Component, OnInit, Inject } from '@angular/core'; import { Component, OnInit, Inject, Renderer2 } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material'; import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
import { KEY_LOGIN_RES_INFO } from '@app/types/login-res-info.type'; import { KEY_LOGIN_RES_INFO } from '@app/types/login-res-info.type';
import { KEY_VER_INFO } from '@app/types/ver-info.type'; import { KEY_VER_INFO } from '@app/types/ver-info.type';
@ -10,6 +10,7 @@ import { DialogService } from '@ucap-webmessenger/ui';
import { VersionInfo2Response } from '@ucap-webmessenger/api-public'; import { VersionInfo2Response } from '@ucap-webmessenger/api-public';
import { LoginResponse } from '@ucap-webmessenger/protocol-authentication'; import { LoginResponse } from '@ucap-webmessenger/protocol-authentication';
import { map } from 'rxjs/operators'; import { map } from 'rxjs/operators';
import { DOCUMENT } from '@angular/common';
export interface MessengerSettingsDialogData {} export interface MessengerSettingsDialogData {}
@ -32,7 +33,9 @@ export class MessengerSettingsDialogComponent implements OnInit {
@Inject(MAT_DIALOG_DATA) public data: MessengerSettingsDialogData, @Inject(MAT_DIALOG_DATA) public data: MessengerSettingsDialogData,
private dialogService: DialogService, private dialogService: DialogService,
private sessionStorageService: SessionStorageService, private sessionStorageService: SessionStorageService,
private store: Store<any> private store: Store<any>,
@Inject(DOCUMENT) private document: Document,
private renderer2: Renderer2
) { ) {
this.sessionVerinfo = this.sessionStorageService.get<VersionInfo2Response>( this.sessionVerinfo = this.sessionStorageService.get<VersionInfo2Response>(
KEY_VER_INFO KEY_VER_INFO
@ -44,6 +47,10 @@ export class MessengerSettingsDialogComponent implements OnInit {
ngOnInit() {} ngOnInit() {}
onSelectTheme(theme: string): void {
this.renderer2.setAttribute(this.document.body, 'class', theme);
}
onClickChoice(choice: boolean): void { onClickChoice(choice: boolean): void {
this.dialogRef.close({}); this.dialogRef.close({});
} }

View File

@ -1,6 +1,6 @@
<mat-toolbar class="app-layout-native-title-bar"> <mat-toolbar class="app-layout-native-title-bar">
<div class="app-layout-native-title-bar-logo"> <div class="app-layout-native-title-bar-logo">
<img src="assets/images/logo/ico_64x64.png" /> <img src="assets/images/logo/64_64.png" />
</div> </div>
<div class="app-layout-native-title-bar-title">UCAP M Messenger</div> <div class="app-layout-native-title-bar-title">UCAP M Messenger</div>
<div class="app-layout-native-title-bar-spacer"></div> <div class="app-layout-native-title-bar-spacer"></div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -2,15 +2,39 @@
<mat-list> <mat-list>
<h1 mat-subheader>테마</h1> <h1 mat-subheader>테마</h1>
<ul class="theme-list"> <ul class="theme-list">
<li class="theme-box default on"></li> <li
<li class="theme-box lgRed"></li> class="theme-box default on"
(click)="onSelectedTabChange('theme-default')"
></li>
<li
class="theme-box lgRed"
(click)="onSelectedTabChange('theme-lgRed')"
></li>
</ul> </ul>
<mat-list-item> <mat-list-item>
<span>기본값</span> <!-- <mat-tab-group
mat-stretch-tabs
animationDuration="0ms"
(selectedTabChange)="onSelectedTabChange($event)"
>
<mat-tab>
<ng-template mat-tab-label>
<div class="theme-box default-theme"></div>
<div>기본값</div>
</ng-template>
</mat-tab>
<mat-tab>
<ng-template mat-tab-label>
<div class="theme-box lg-red-theme"></div>
<div>LG Red</div>
</ng-template>
</mat-tab>
</mat-tab-group> -->
<!--
<span>기본값</span>
<span>어둡게</span> <span>어둡게</span>
<span>밝게</span> <span>밝게</span> -->
</mat-list-item> </mat-list-item>
<mat-divider></mat-divider> <mat-divider></mat-divider>

View File

@ -5,24 +5,30 @@
margin: 10px; margin: 10px;
height: 120px; height: 120px;
.theme-box{ .theme-box {
width: 140px; width: 140px;
height:98px; height: 98px;
margin-right:10px; margin-right: 10px;
border: 1px solid #dddddd; border: 1px solid #dddddd;
background-size:100% auto; background-size: 100% auto;
background-repeat: no-repeat; background-repeat: no-repeat;
opacity: 0.7; opacity: 0.7;
&.default{ &.default {
background-image: url("../../../../ucap-webmessenger-app/src/assets/images/theme/theme-default.png"); background-image: url('../../../../ucap-webmessenger-app/src/assets/images/theme/theme-default.png');
} }
&.lgRed{ &.lgRed {
background-image: url("../../../../ucap-webmessenger-app/src/assets/images/theme/theme-lgRed.png"); background-image: url('../../../../ucap-webmessenger-app/src/assets/images/theme/theme-lgRed.png');
} }
&.on{ &.on {
border:1px solid #333333; border: 1px solid #333333;
opacity: 1; opacity: 1;
} }
} }
.default-theme {
background-image: url('../../../../ucap-webmessenger-app/src/assets/images/theme/theme-default.png');
}
.lg-red-theme {
background-image: url('../../../../ucap-webmessenger-app/src/assets/images/theme/theme-lgRed.png');
}
} }

View File

@ -1,4 +1,10 @@
import { Component, OnInit, ChangeDetectorRef } from '@angular/core'; import {
Component,
OnInit,
ChangeDetectorRef,
Output,
EventEmitter
} from '@angular/core';
import { FormGroup, FormBuilder } from '@angular/forms'; import { FormGroup, FormBuilder } from '@angular/forms';
@Component({ @Component({
@ -9,6 +15,9 @@ import { FormGroup, FormBuilder } from '@angular/forms';
export class GeneralComponent implements OnInit { export class GeneralComponent implements OnInit {
loginForm: FormGroup; loginForm: FormGroup;
@Output()
selectTheme = new EventEmitter<string>();
constructor( constructor(
private formBuilder: FormBuilder, private formBuilder: FormBuilder,
private changeDetectorRef: ChangeDetectorRef private changeDetectorRef: ChangeDetectorRef
@ -16,5 +25,9 @@ export class GeneralComponent implements OnInit {
ngOnInit() {} ngOnInit() {}
onSelectedTabChange(theme: string) {
this.selectTheme.emit(theme);
}
onClickLogin() {} onClickLogin() {}
} }

View File

@ -9,6 +9,7 @@ import { MatFormFieldModule } from '@angular/material/form-field';
import { MatListModule } from '@angular/material/list'; import { MatListModule } from '@angular/material/list';
import { MatSelectModule } from '@angular/material/select'; import { MatSelectModule } from '@angular/material/select';
import { MatSlideToggleModule } from '@angular/material/slide-toggle'; import { MatSlideToggleModule } from '@angular/material/slide-toggle';
import { MatTabsModule } from '@angular/material/tabs';
import { CallComponent } from './components/call.component'; import { CallComponent } from './components/call.component';
import { DeviceComponent } from './components/device.component'; import { DeviceComponent } from './components/device.component';
@ -36,7 +37,8 @@ const SERVICES = [];
MatFormFieldModule, MatFormFieldModule,
MatListModule, MatListModule,
MatSelectModule, MatSelectModule,
MatSlideToggleModule MatSlideToggleModule,
MatTabsModule
], ],
exports: [...COMPONENTS], exports: [...COMPONENTS],
declarations: [...COMPONENTS] declarations: [...COMPONENTS]