Blazorise Theme Update
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<Router AppAssembly="@typeof(App).Assembly">
|
||||
<Blazorise.ThemeProvider Theme="@theme">
|
||||
<Router AppAssembly="@typeof(App).Assembly">
|
||||
<Found Context="routeData">
|
||||
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)">
|
||||
</AuthorizeRouteView>
|
||||
@@ -11,5 +12,18 @@
|
||||
</LayoutView>
|
||||
</NotFound>
|
||||
</Router>
|
||||
</Blazorise.ThemeProvider>
|
||||
|
||||
<MessageAlert/>
|
||||
|
||||
@code{
|
||||
private Theme theme = new()
|
||||
{
|
||||
ColorOptions = new ThemeColorOptions
|
||||
{
|
||||
Primary = "#64ae24",
|
||||
Secondary = "#533a20",
|
||||
},
|
||||
|
||||
};
|
||||
}
|
||||
@@ -11,9 +11,9 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Blazorise.DataGrid" Version="0.9.5.4" />
|
||||
<PackageReference Include="Blazorise.Icons.Material" Version="0.9.5.4" />
|
||||
<PackageReference Include="Blazorise.Material" Version="0.9.5.4" />
|
||||
<PackageReference Include="Blazorise.DataGrid" Version="1.0.2" />
|
||||
<PackageReference Include="Blazorise.Icons.Material" Version="1.0.2" />
|
||||
<PackageReference Include="Blazorise.Material" Version="1.0.2" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.1" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.1">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
|
||||
@@ -26,7 +26,7 @@ builder.Services.AddScoped<AuthService>();
|
||||
builder.Services.AddScoped<UserService>();
|
||||
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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user