Skip to content

Commit 3eb30de

Browse files
committed
8. Fix the theme picker
1 parent cd8d10b commit 3eb30de

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
<button md-icon-button [md-menu-trigger-for]="themeMenu" mdTooltip="Select a theme!">
2-
<md-icon>format_color_fill</md-icon>
1+
<button mat-icon-button [mat-menu-trigger-for]="themeMenu" matTooltip="Select a theme!">
2+
<mat-icon>format_color_fill</mat-icon>
33
</button>
44

5-
<md-menu class="docs-theme-picker-menu" #themeMenu="mdMenu" x-position="before">
6-
<md-list-item *ngFor="let theme of themes" md-menu-item (click)="installTheme(theme)" >
7-
<md-icon md-list-icon [mdTooltip]="theme.name" class="docs-theme-chosen-icon" [style.color]="theme.accent"
8-
[style.background]="theme.primary"
9-
*ngIf="currentTheme === theme">check_circle
10-
</md-icon>
11-
<md-icon md-list-icon [mdTooltip]="theme.name" class="docs-theme-chosen-icon" [style.color]="theme.accent"
12-
[style.background]="theme.primary"
13-
*ngIf="currentTheme !== theme">invert_colors
14-
</md-icon>
5+
<mat-menu class="docs-theme-picker-menu" #themeMenu="matMenu" x-position="before">
6+
<button *ngFor="let theme of themes" mat-menu-item (click)="installTheme(theme)" >
7+
<mat-icon mat-list-icon [matTooltip]="theme.name" class="docs-theme-chosen-icon" [style.color]="theme.accent"
8+
[style.background]="theme.primary"
9+
*ngIf="currentTheme === theme">check_circle
10+
</mat-icon>
11+
<mat-icon mat-list-icon [matTooltip]="theme.name" class="docs-theme-chosen-icon" [style.color]="theme.accent"
12+
[style.background]="theme.primary"
13+
*ngIf="currentTheme !== theme">invert_colors
14+
</mat-icon>
1515
{{theme.name}}
16-
</md-list-item>
17-
</md-menu>
16+
</button>
17+
</mat-menu>

0 commit comments

Comments
 (0)