[CHANGE] Remove build warning
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<MudText Typo="Typo.h6">@AppText</MudText>
|
||||
<MudSpacer/>
|
||||
<MudTooltip Text="Gitea source">
|
||||
<MudIconButton Icon="@Icons.Material.Filled.Source" Href="https://git.netzbyte.com/max/Yt-Import" Target="_blank"/>
|
||||
<MudIconButton Icon="@Icons.Material.Filled.Code" Color="Color.Info" Href="https://git.netzbyte.com/max/Yt-Import" Target="_blank"/>
|
||||
</MudTooltip>
|
||||
@if (BaseLayout != null)
|
||||
{
|
||||
|
@@ -1,6 +1,6 @@
|
||||
@inherits LayoutComponentBase
|
||||
|
||||
<MudThemeProvider @ref="@_themeProvider" Theme="@_mudTheme" IsDarkMode="@DarkTheme"/>
|
||||
<MudThemeProvider @ref="@_themeProvider" IsDarkModeChanged="@OnDarkThemeChanged" Theme="@_mudTheme" IsDarkMode="@DarkTheme"/>
|
||||
<MudPopoverProvider />
|
||||
<MudDialogProvider/>
|
||||
<MudSnackbarProvider/>
|
||||
|
@@ -5,11 +5,11 @@ namespace Manager.App.Components.Layout;
|
||||
|
||||
public partial class BaseLayout
|
||||
{
|
||||
private readonly MudTheme _mudTheme = new MudTheme();
|
||||
private readonly MudTheme _mudTheme = new();
|
||||
private MudThemeProvider? _themeProvider;
|
||||
private bool _isDarkTheme = true;
|
||||
|
||||
public event EventHandler<bool>? OnDarkThemeChanged;
|
||||
public EventCallback<bool> OnDarkThemeChanged;
|
||||
|
||||
public bool DarkTheme
|
||||
{
|
||||
@@ -31,7 +31,6 @@ public partial class BaseLayout
|
||||
if (firstRender && _themeProvider != null)
|
||||
{
|
||||
DarkTheme = await _themeProvider.GetSystemDarkModeAsync();
|
||||
_themeProvider.IsDarkModeChanged = EventCallback.Factory.Create<bool>(this, x => OnDarkThemeChanged?.Invoke(this, x));
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,7 +1,5 @@
|
||||
|
||||
<MudNavMenu>
|
||||
<MudText Typo="Typo.h6" Class="px-4">YouTube Import</MudText>
|
||||
<MudDivider Class="my-2"/>
|
||||
<MudNavLink Href="/" Match="NavLinkMatch.Prefix">Home</MudNavLink>
|
||||
<MudNavLink Href="/Accounts" Match="NavLinkMatch.All">Accounts</MudNavLink>
|
||||
<MudNavLink Href="/Library" Match="NavLinkMatch.All">Library</MudNavLink>
|
||||
|
Reference in New Issue
Block a user