Skip to content
Snippets Groups Projects
Commit 5e4d6ce1 authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Give current filter a color for icon

parent 12ea4776
Branches
Tags
1 merge request!199Minor fixes
Pipeline #26961 passed with stages
in 5 minutes and 1 second
...@@ -45,19 +45,19 @@ ...@@ -45,19 +45,19 @@
<mat-menu #filterMenu="matMenu" xPosition="before"> <mat-menu #filterMenu="matMenu" xPosition="before">
<div> <div>
<button mat-icon-button (focus)="hideCommentsList=true" (click)="filter(correct)"> <button mat-icon-button (focus)="hideCommentsList=true" (click)="filter(correct)">
<mat-icon>check_circle</mat-icon> <mat-icon [ngClass]="{correct: 'correct-icon'}[currentFilter]">check_circle</mat-icon>
</button> </button>
<button mat-icon-button (focus)="hideCommentsList=true" (click)="filter(favorite)"> <button mat-icon-button (focus)="hideCommentsList=true" (click)="filter(favorite)">
<mat-icon>favorite</mat-icon> <mat-icon [ngClass]="{favorite: 'favorite-icon'}[currentFilter]">favorite</mat-icon>
</button> </button>
<button mat-icon-button (focus)="hideCommentsList=true" (click)="filter(read)"> <button mat-icon-button (focus)="hideCommentsList=true" (click)="filter(read)">
<mat-icon>visibility</mat-icon> <mat-icon [ngClass]="{read: 'read-icon'}[currentFilter]">visibility</mat-icon>
</button> </button>
<button mat-icon-button (focus)="hideCommentsList=true" (click)="filter(unread)"> <button mat-icon-button (focus)="hideCommentsList=true" (click)="filter(unread)">
<mat-icon>visibility_off</mat-icon> <mat-icon [ngClass]="{unread: 'unread-icon'}[currentFilter]">visibility_off</mat-icon>
</button> </button>
<button mat-icon-button (focus)="hideCommentsList=false" (click)="sort(currentSort)"> <button mat-icon-button (focus)="hideCommentsList=false" (click)="sort(currentSort)">
......
...@@ -63,3 +63,19 @@ h4 { ...@@ -63,3 +63,19 @@ h4 {
.button-bar { .button-bar {
margin-right: 2%; margin-right: 2%;
} }
.correct-icon {
color: var(--green);
}
.read-icon {
color: var(--blue);
}
.favorite-icon {
color: var(--red);
}
.unread-icon {
color: var(--yellow);
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment