[CHANGE] Remove build warning

This commit is contained in:
max
2025-08-17 19:04:07 +02:00
parent b6453d8bf6
commit a62eeb727a
4 changed files with 4 additions and 7 deletions

View File

@@ -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)
{

View File

@@ -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/>

View File

@@ -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));
}
}
}

View File

@@ -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>