|
1 | 1 | @inherits LayoutComponentBase |
2 | 2 |
|
3 | | -<MudThemeProvider Theme="_currentTheme"/> |
| 3 | +<MudThemeProvider Theme="_currentTheme" IsDarkMode="true"/> |
| 4 | +<MudPopoverProvider/> |
4 | 5 | <MudDialogProvider/> |
5 | 6 | <MudSnackbarProvider/> |
6 | 7 |
|
7 | 8 | <MudLayout> |
8 | 9 | <MudAppBar Elevation="0"> |
9 | | - <MudIconButton Icon="@Icons.Material.Filled.Menu" Color="Color.Inherit" Edge="Edge.Start" OnClick="@((e) => DrawerToggle())"/> |
| 10 | + <MudIconButton Icon="@Icons.Material.Filled.Menu" Color="Color.Inherit" Edge="Edge.Start" |
| 11 | + OnClick="@((e) => DrawerToggle())"/> |
10 | 12 | <MudSpacer/> |
11 | 13 |
|
12 | 14 | @if (_adminService.IsAuthenticated) |
|
48 | 50 | private readonly MudTheme _darkTheme = new() |
49 | 51 | { |
50 | 52 | // Official https://github.com/MudBlazor/MudBlazor/blob/4ab9e29ff5ad25c4c1aba62577c487637331e781/src/MudBlazor/Themes/Models/Palette.cs |
51 | | - Palette = new Palette |
| 53 | + PaletteDark = new PaletteDark |
52 | 54 | { |
53 | 55 | Primary = "#0bba83", // custom green |
54 | 56 | // Primary = "#776be7", // default purple |
55 | 57 | Black = "#27272f", |
56 | 58 | Background = "#32333d", |
57 | | - BackgroundGrey = "#27272f", |
| 59 | + BackgroundGray = "#27272f", |
58 | 60 | Surface = "#373740", |
59 | 61 | DrawerBackground = "#27272f", |
60 | 62 | DrawerText = "rgba(255,255,255, 0.50)", |
|
79 | 81 | Dark = "#27272f" |
80 | 82 | } |
81 | 83 |
|
82 | | - // Alt. https://github.com/aksoftware98/mudblazorsample/blob/main/MudBlazorSample/MudBlazorSample/Shared/MainLayout.razor |
83 | | - //Palette = new Palette |
84 | | - //{ |
85 | | - // Black = "#27272f", |
86 | | - // Background = "#32333d", |
87 | | - // BackgroundGrey = "#27272f", |
88 | | - // Surface = "#373740", |
89 | | - // DrawerBackground = "#27272f", |
90 | | - // DrawerText = "rgba(255,255,255, 0.50)", |
91 | | - // AppbarBackground = "#27272f", |
92 | | - // AppbarText = "rgba(255,255,255, 0.70)", |
93 | | - // TextPrimary = "rgba(255,255,255, 0.70)", |
94 | | - // TextSecondary = "rgba(255,255,255, 0.50)", |
95 | | - // ActionDefault = "#adadb1", |
96 | | - // ActionDisabled = "rgba(255,255,255, 0.26)", |
97 | | - // ActionDisabledBackground = "rgba(255,255,255, 0.12)", |
98 | | - // DrawerIcon = "rgba(255,255,255, 0.50)" |
99 | | - //} |
| 84 | + // Alt. https://github.com/aksoftware98/mudblazorsample/blob/main/MudBlazorSample/MudBlazorSample/Shared/MainLayout.razor |
| 85 | + //Palette = new Palette |
| 86 | + //{ |
| 87 | + // Black = "#27272f", |
| 88 | + // Background = "#32333d", |
| 89 | + // BackgroundGrey = "#27272f", |
| 90 | + // Surface = "#373740", |
| 91 | + // DrawerBackground = "#27272f", |
| 92 | + // DrawerText = "rgba(255,255,255, 0.50)", |
| 93 | + // AppbarBackground = "#27272f", |
| 94 | + // AppbarText = "rgba(255,255,255, 0.70)", |
| 95 | + // TextPrimary = "rgba(255,255,255, 0.70)", |
| 96 | + // TextSecondary = "rgba(255,255,255, 0.50)", |
| 97 | + // ActionDefault = "#adadb1", |
| 98 | + // ActionDisabled = "rgba(255,255,255, 0.26)", |
| 99 | + // ActionDisabledBackground = "rgba(255,255,255, 0.12)", |
| 100 | + // DrawerIcon = "rgba(255,255,255, 0.50)" |
| 101 | + //} |
100 | 102 | }; |
101 | 103 |
|
102 | 104 | bool _drawerOpen = true; |
|
0 commit comments