Blazorise Theme Update

This commit is contained in:
Andre Beging
2022-04-04 16:30:53 +02:00
parent b8dfeee518
commit c71d677b75
3 changed files with 32 additions and 18 deletions

View File

@@ -1,15 +1,29 @@
<Router AppAssembly="@typeof(App).Assembly"> <Blazorise.ThemeProvider Theme="@theme">
<Found Context="routeData"> <Router AppAssembly="@typeof(App).Assembly">
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)"> <Found Context="routeData">
</AuthorizeRouteView> <AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)">
<FocusOnNavigate RouteData="@routeData" Selector="h1"/> </AuthorizeRouteView>
</Found> <FocusOnNavigate RouteData="@routeData" Selector="h1"/>
<NotFound> </Found>
<PageTitle>Not found</PageTitle> <NotFound>
<LayoutView Layout="@typeof(MainLayout)"> <PageTitle>Not found</PageTitle>
<p role="alert">Sorry, there's nothing at this address.</p> <LayoutView Layout="@typeof(MainLayout)">
</LayoutView> <p role="alert">Sorry, there's nothing at this address.</p>
</NotFound> </LayoutView>
</Router> </NotFound>
</Router>
</Blazorise.ThemeProvider>
<MessageAlert /> <MessageAlert/>
@code{
private Theme theme = new()
{
ColorOptions = new ThemeColorOptions
{
Primary = "#64ae24",
Secondary = "#533a20",
},
};
}

View File

@@ -11,9 +11,9 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Blazorise.DataGrid" Version="0.9.5.4" /> <PackageReference Include="Blazorise.DataGrid" Version="1.0.2" />
<PackageReference Include="Blazorise.Icons.Material" Version="0.9.5.4" /> <PackageReference Include="Blazorise.Icons.Material" Version="1.0.2" />
<PackageReference Include="Blazorise.Material" Version="0.9.5.4" /> <PackageReference Include="Blazorise.Material" Version="1.0.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.1" /> <PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.1"> <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.1">
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>

View File

@@ -26,7 +26,7 @@ builder.Services.AddScoped<AuthService>();
builder.Services.AddScoped<UserService>(); builder.Services.AddScoped<UserService>();
builder.Services.AddScoped<ProspectService>(); builder.Services.AddScoped<ProspectService>();
builder.Services.AddBlazorise(options => { options.ChangeTextOnKeyPress = true; }).AddMaterialProviders().AddMaterialIcons(); builder.Services.AddBlazorise( options => { options.Immediate = true; }).AddMaterialProviders().AddMaterialIcons();
var app = builder.Build(); var app = builder.Build();