mirror of
https://github.com/alexta69/metube.git
synced 2025-04-04 12:47:38 +03:00
Theme button is now material button
This commit is contained in:
parent
225d37f88d
commit
61900a7ba8
4 changed files with 39 additions and 19 deletions
|
@ -13,8 +13,12 @@
|
|||
</div>
|
||||
-->
|
||||
<div>
|
||||
<span class="text-white">Toggle Theme</span>
|
||||
<input style="margin: 1rem;" type="checkbox" [ngModel]="this.darkMode" aria-label="Toggle theme" (change)="themeChanged()">
|
||||
<button class="btn btn-secondary" aria-label="Toggle theme" (click)="themeChanged()">
|
||||
<i *ngIf="darkMode; else sunIcon" class="bi bi-sun-fill"></i>
|
||||
<ng-template #sunIcon>
|
||||
<i class="bi bi-moon-stars-fill"></i>
|
||||
</ng-template>
|
||||
</button>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue