Skip to content

Commit

Permalink
add more indicators (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveSkender authored Feb 21, 2022
1 parent 5deb20b commit 9d18a8a
Show file tree
Hide file tree
Showing 9 changed files with 756 additions and 59 deletions.
10 changes: 5 additions & 5 deletions Client/src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<div [ngClass]="ts.isDarkTheme ? 'dark-theme' : 'light-theme'">
<mat-toolbar class="toolbar noselect">
<h1 class="no-wrap" matTooltip="Visit the documentation site for Stock Indicators for .NET">
<a href="https://daveskender.github.io/Stock.Indicators/">
Stock Indicators for .NET (demo)
<h1 class="no-wrap">
<a href="https://github.com/DaveSkender/Stock.Charts/">
Stock.Chart
</a>
</h1>
<div class="filler"></div>
<button mat-mini-fab color="default" (click)="openPickList()" class="edit-button" matTooltip="change indicators and settings">
<button mat-fab color="default" (click)="openPickList()" class="edit-button"
matTooltip="change indicators and settings">
<mat-icon color="primary">edit</mat-icon>
</button>
</mat-toolbar>


<div id="main-content" class="body-container">
<app-chart></app-chart>
</div>
Expand Down
23 changes: 18 additions & 5 deletions Client/src/app/chart/chart.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@

.chart-overlay-container {
padding: 0;
margin: 0;
margin: auto;
border-style: none;
border-width: 0;
min-height: 50vh;
max-height: calc(100vh - 64px);
// max-width: 850px;
height: 50vh;

@media (max-height: 800px){
height: 40vh;
}

@media (max-height: 400px){
height: calc(100vh - 64px); // full-screen (with toolbar)
Expand All @@ -15,8 +19,17 @@

.chart-oscillator-container {
padding: 0;
margin: 0;
margin: auto;
border-style: none;
border-width: 0;
height: 12vh;
// max-width: 850px;
height: 15vh;

@media (max-height: 800px){
height: 20vh;
}

@media (max-height: 400px){
height: 30vh;
}
}
1 change: 0 additions & 1 deletion Client/src/app/chart/chart.models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export interface IndicatorParamConfig {
paramName: string;
dataType: string;
order: number;
required: boolean;
defaultValue: number;
minimum: number;
maximum: number;
Expand Down
4 changes: 2 additions & 2 deletions Client/src/app/chart/picker/pick-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export class PickListComponent {
}

openEditor(event: MouseEvent, listing: IndicatorListing): void {
this.listRef.closeAll();
event.preventDefault();
this.listRef.closeAll();

const pickerRef = this.picker.open(PickFormComponent, {
minWidth: '300px',
Expand All @@ -44,8 +44,8 @@ export class PickListComponent {
}

removeSelection(event: MouseEvent, ucid: string): void {
this.listRef.closeAll();
event.preventDefault();
// this.listRef.closeAll();
this.cs.deleteSelection(ucid);
}

Expand Down
6 changes: 3 additions & 3 deletions Client/src/app/styles-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
// ref: https://www.materialpalette.com

// Define a light theme
$light-primary: mat.define-palette(mat.$indigo-palette);
$light-accent: mat.define-palette(mat.$pink-palette);
$light-warn: mat.define-palette(mat.$red-palette);
$light-primary: mat.define-palette(mat.$grey-palette);
$light-accent: mat.define-palette(mat.$blue-gray-palette);
$light-warn: mat.define-palette(mat.$deep-orange-palette);
$light-theme: mat.define-light-theme(
(
color: (
Expand Down
Loading

0 comments on commit 9d18a8a

Please sign in to comment.