Added theme button in top bar.

This commit is contained in:
Tom
2025-04-01 21:29:05 +00:00
parent d69fc68ec1
commit e053529d49
3 changed files with 5 additions and 3 deletions

View File

@ -27,4 +27,5 @@
}
</div>
}
<theme />
</mat-toolbar>

View File

@ -9,6 +9,7 @@ import { ImpersonationComponent } from '../../auth/impersonation/impersonation.c
import { HermesClientService } from '../../hermes-client.service';
import EventService from '../../shared/services/EventService';
import { Subscription } from 'rxjs';
import { ThemeComponent } from "../../theme/theme.component";
@Component({
selector: 'topbar',
@ -19,6 +20,7 @@ import { Subscription } from 'rxjs';
MatButtonModule,
MatIconModule,
MatToolbarModule,
ThemeComponent,
],
providers: [AuthVisitorGuard],
templateUrl: './topbar.component.html',

View File

@ -1,6 +1,5 @@
<button mat-icon-button
class="refresh"
aria-label="Change theme"
(click)="toggle()">
<mat-icon>refresh</mat-icon>
<mat-icon>{{isLightMode ? 'dark_mode' : 'light_mode'}}</mat-icon>
</button>