-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(theme): Add menu button to switch between dark and light themes (#…
…939) * feat(theme): Add toggle button to switch between dark and light themes * chore(): use `[]` rather than `{{}}` in class
- Loading branch information
1 parent
d927265
commit 4e80434
Showing
4 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,5 +48,13 @@ <h4 matLine><span class="text-wrap">CDK and [email protected] support</span></h4> | |
<mat-icon>swap_horiz</mat-icon> | ||
<span>{{dir.toUpperCase()}}</span> | ||
</button> | ||
<button mat-menu-item *ngIf="activeTheme === 'theme-dark'" (click)="theme('default-theme')"> | ||
<mat-icon>brightness_high</mat-icon> | ||
<span>Light Mode</span> | ||
</button> | ||
<button mat-menu-item *ngIf="activeTheme != 'theme-dark'" (click)="theme('theme-dark')"> | ||
<mat-icon>brightness_low</mat-icon> | ||
<span>Dark Mode</span> | ||
</button> | ||
</mat-menu> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters