Replace primary color with blue color in editor btns
All checks were successful
E2E Testing / test (push) Successful in 1m29s

This commit is contained in:
Sebastian Böckelmann 2024-03-18 16:09:03 +01:00
parent 26ef72cac3
commit 511043b764
9 changed files with 25 additions and 18 deletions

View File

@ -37,8 +37,8 @@
<ng-container matColumnDef="edit"> <ng-container matColumnDef="edit">
<th mat-header-cell *matHeaderCellDef></th> <th mat-header-cell *matHeaderCellDef></th>
<td mat-cell *matCellDef="let condition;"> <td mat-cell *matCellDef="let condition;">
<button mat-icon-button color="primary" *ngIf="editedCondition == undefined" (click)="edit(condition)"><mat-icon>edit</mat-icon></button> <button mat-icon-button class="icon-btn-primary" *ngIf="editedCondition == undefined" (click)="edit(condition)"><mat-icon>edit</mat-icon></button>
<button mat-icon-button color="primary" *ngIf="editedCondition === condition" (click)="finishEditing()"><mat-icon>done</mat-icon></button> <button mat-icon-button class="icon-btn-primary" *ngIf="editedCondition === condition" (click)="finishEditing()"><mat-icon>done</mat-icon></button>
</td> </td>
</ng-container> </ng-container>

View File

@ -51,8 +51,8 @@
<ng-container matColumnDef="edit"> <ng-container matColumnDef="edit">
<th mat-header-cell *matHeaderCellDef></th> <th mat-header-cell *matHeaderCellDef></th>
<td mat-cell *matCellDef="let state"> <td mat-cell *matCellDef="let state">
<button mat-icon-button color="primary" *ngIf="editedElement !== state" (click)="editState(state)" [disabled]="editedElement !== null"><mat-icon>edit</mat-icon></button> <button mat-icon-button class="icon-btn-primary" *ngIf="editedElement !== state" (click)="editState(state)" [disabled]="editedElement !== null"><mat-icon>edit</mat-icon></button>
<button mat-icon-button color="primary" (click)="finishEditing()" *ngIf="editedElement === state"><mat-icon>done</mat-icon></button> <button mat-icon-button class="icon-btn-primary" (click)="finishEditing()" *ngIf="editedElement === state"><mat-icon>done</mat-icon></button>
</td> </td>
</ng-container> </ng-container>

View File

@ -17,12 +17,6 @@ tr.example-element-row:not(.example-expanded-row):active {
.example-element-row td { .example-element-row td {
border-bottom-width: 0; border-bottom-width: 0;
} }
.example-element-detail {
overflow: hidden;
display: flex;
}
.example-element-diagram { .example-element-diagram {
min-width: 80px; min-width: 80px;
border: 2px solid black; border: 2px solid black;

View File

@ -26,8 +26,8 @@
<ng-container matColumnDef="edit"> <ng-container matColumnDef="edit">
<th mat-header-cell *matHeaderCellDef></th> <th mat-header-cell *matHeaderCellDef></th>
<td mat-cell *matCellDef="let action"> <td mat-cell *matCellDef="let action">
<button mat-icon-button color="primary" (click)="editAction(action)" [disabled]="addedAction != undefined || editedAction != undefined" *ngIf="action !== editedAction && action !== addedAction"><mat-icon>edit</mat-icon></button> <button mat-icon-button class="icon-btn-primary" (click)="editAction(action)" [disabled]="addedAction != undefined || editedAction != undefined" *ngIf="action !== editedAction && action !== addedAction"><mat-icon>edit</mat-icon></button>
<button mat-icon-button color="primary" *ngIf="action === editedAction || action === addedAction" (click)="finishEditing()"><mat-icon>done</mat-icon></button> <button mat-icon-button class="icon-btn-primary" *ngIf="action === editedAction || action === addedAction" (click)="finishEditing()"><mat-icon>done</mat-icon></button>
</td> </td>
</ng-container> </ng-container>

View File

@ -58,8 +58,8 @@
<ng-container matColumnDef="edit"> <ng-container matColumnDef="edit">
<th mat-header-cell *matHeaderCellDef></th> <th mat-header-cell *matHeaderCellDef></th>
<td mat-cell *matCellDef="let transition"> <td mat-cell *matCellDef="let transition">
<button mat-icon-button color="primary" *ngIf="editedTransition !== transition" [disabled]="editedTransition != undefined"><mat-icon>edit</mat-icon></button> <button mat-icon-button class="icon-btn-primary" *ngIf="editedTransition !== transition" [disabled]="editedTransition != undefined"><mat-icon>edit</mat-icon></button>
<button mat-icon-button color="primary" *ngIf="editedTransition === transition" <button mat-icon-button class="icon-btn-primary" *ngIf="editedTransition === transition"
[disabled]="transitionError || transitionStartingStateError || transitionEndingStateError" (click)="finishEditing()" [disabled]="transitionError || transitionStartingStateError || transitionEndingStateError" (click)="finishEditing()"
><mat-icon>done</mat-icon></button> ><mat-icon>done</mat-icon></button>
</td> </td>

View File

@ -17,3 +17,7 @@ body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; }
background-color: #4f5459 !important; background-color: #4f5459 !important;
color: white; color: white;
} }
.icon-btn-primary {
color: #3c95f8;
}

View File

@ -0,0 +1,13 @@
{
"componentName": "Weather",
"componentDescription": "",
"states": [
{
"initial": false,
"conditions": [],
"stateLabel": "Sonnig",
"stateDescription": "Die Sonne scheint"
}
],
"transitions": []
}

View File

@ -1,8 +1,6 @@
{ {
"unsaved": false,
"componentName": "Luftfeuchtigkeit", "componentName": "Luftfeuchtigkeit",
"componentDescription": "", "componentDescription": "",
"type": 0,
"minValue": 0, "minValue": 0,
"maxValue": 100 "maxValue": 100
} }

View File

@ -1,8 +1,6 @@
{ {
"unsaved": false,
"componentName": "Temperature", "componentName": "Temperature",
"componentDescription": "", "componentDescription": "",
"type": 0,
"minValue": 0, "minValue": 0,
"maxValue": 100 "maxValue": 100
} }