parent
b2e7947fb3
commit
5cb0953df7
@ -1,3 +1,10 @@
|
||||
<span #clickColorPickerElement>
|
||||
<button mat-raised-button color="primary"><ng-content></ng-content></button>
|
||||
<button mat-raised-button color="accent" class="w-100">
|
||||
<div class="center">
|
||||
<span class="text">
|
||||
<ng-content></ng-content>
|
||||
</span>
|
||||
<span class="realBG"><span *ngIf="value" class="transparency-grid colorDisplay" [ngStyle]="{'background-color': value}"></span></span>
|
||||
</div>
|
||||
</button>
|
||||
</span>
|
@ -0,0 +1,36 @@
|
||||
:host {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.center {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.colorDisplay {
|
||||
display: inline-block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.text {
|
||||
display: inline-block
|
||||
}
|
||||
|
||||
.transparency-grid {
|
||||
background-image:
|
||||
linear-gradient(45deg, #808080 25%, transparent 25%),
|
||||
linear-gradient(-45deg, #808080 25%, transparent 25%),
|
||||
linear-gradient(45deg, transparent 75%, #808080 75%),
|
||||
linear-gradient(-45deg, transparent 75%, #808080 75%);
|
||||
background-size: 10px 10px;
|
||||
background-position: 0 0, 0 5px, 5px -5px, -5px 0px;;
|
||||
}
|
||||
|
||||
.realBG {
|
||||
background-color: #fff;
|
||||
margin-left: 5px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
@ -1,19 +1,43 @@
|
||||
<div class="settings">
|
||||
<div class="colors">
|
||||
<color-picker [setColor]="configService.config.planBg" (color)="onPlanColorChange($event)">Plan window
|
||||
background</color-picker>
|
||||
<color-picker [setColor]="configService.config.backdropBg" (color)="onBackdropColorChange($event)">Overlay
|
||||
backdrop color</color-picker>
|
||||
<color-picker [setColor]="configService.config.noteDefaultFg" (color)="onNoteColorChange($event)">Overlay default font color</color-picker>
|
||||
</div>
|
||||
<div class="checkboxes">
|
||||
<mat-slide-toggle [color]="overlayService.isOverlay ? 'primary-on-dark' : 'primary'"
|
||||
[(ngModel)]="configService.config.hideOnUnfocus">Auto hide on unfocus</mat-slide-toggle>
|
||||
</div>
|
||||
<div class="d-flex w-100 h-100 align-items-center">
|
||||
<div class="d-flex flex-column settings col-xl-4 offset-xl-4 col-lg-6 offset-lg-3 col-md-8 offset-md-2 col-sm-10 offset-sm-1 col-xs-12">
|
||||
<div class="row">
|
||||
<h1>
|
||||
Settings
|
||||
<mat-divider></mat-divider>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="row">
|
||||
<color-picker [setColor]="configService.config.planBg" (color)="onPlanColorChange($event)">Plan window
|
||||
background</color-picker>
|
||||
</div>
|
||||
<div class="row">
|
||||
<color-picker [setColor]="configService.config.backdropBg"
|
||||
(color)="onBackdropColorChange($event)">Overlay
|
||||
backdrop color</color-picker>
|
||||
</div>
|
||||
<div class="row">
|
||||
<color-picker [setColor]="configService.config.noteDefaultFg"
|
||||
(color)="onNoteColorChange($event)">Overlay
|
||||
default
|
||||
font color</color-picker>
|
||||
|
||||
<button mat-raised-button (click)="rebindOverlayToggle()">Overlay toggle shortcut:
|
||||
{{configService.config.toggleOverlay}}</button>
|
||||
<button mat-raised-button (click)="rebindPreviousZone()">Previous zone shortcut:
|
||||
{{configService.config.prev}}</button>
|
||||
<button mat-raised-button (click)="rebindNextZone()">Next zone shortcut: {{configService.config.next}}</button>
|
||||
</div>
|
||||
<div class="row">
|
||||
<mat-slide-toggle [color]="overlayService.isOverlay ? 'primary-on-dark' : 'primary'"
|
||||
[(ngModel)]="configService.config.hideOnUnfocus">Auto hide on unfocus</mat-slide-toggle>
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<button mat-raised-button color="accent" (click)="rebindOverlayToggle()">Overlay toggle shortcut:
|
||||
{{configService.config.toggleOverlay}}</button>
|
||||
</div>
|
||||
<div class="row">
|
||||
<button mat-raised-button color="accent" (click)="rebindPreviousZone()">Previous zone shortcut:
|
||||
{{configService.config.prev}}</button>
|
||||
</div>
|
||||
<div class="row">
|
||||
<button mat-raised-button color="accent" (click)="rebindNextZone()">Next zone shortcut:
|
||||
{{configService.config.next}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in new issue