File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 55<MudDialogProvider />
66<MudSnackbarProvider />
77
8-
9-
108<MudLayout >
119 <MudAppBar Elevation =" 1" >
1210 <MudText Typo =" Typo.h5" Class =" ml-3" >Github Star Search</MudText >
1311 <MudSpacer />
14- <MudIconButton Icon =" @Icons.Material.Filled.MoreVert " Color =" Color.Inherit" Edge = " Edge.End " />
12+ <MudIconButton Icon =" @(DarkLightModeButtonIcon) " Color =" Color.Inherit" OnClick = " @DarkModeToggle " />
1513 </MudAppBar >
1614 <MudMainContent Class =" mt-16 pa-4" >
1715 @Body
2624</div >
2725
2826@code {
29- private bool _drawerOpen = true ;
3027 private bool _isDarkMode = true ;
3128 private MudTheme ? _theme = null ;
3229
4239 };
4340 }
4441
45-
46- private void DrawerToggle ()
47- {
48- _drawerOpen = ! _drawerOpen ;
49- }
50-
5142 private void DarkModeToggle ()
5243 {
5344 _isDarkMode = ! _isDarkMode ;
9485
9586 public string DarkLightModeButtonIcon => _isDarkMode switch
9687 {
97- true => Icons .Material .Rounded .AutoMode ,
88+ true => Icons .Material .Rounded .LightMode ,
9889 false => Icons .Material .Outlined .DarkMode ,
9990 };
10091}
You can’t perform that action at this time.
0 commit comments