PDA

View Full Version : [CLOSED] Changing Theme on v7 from Spotless



baruch.gabo
Jun 28, 2022, 4:43 PM
We are trying to change the theme in the Startup.cs file
from

app.UseExtNet(config =>
{
config.Theme = ThemeKind.Spotless;
});


to

app.UseExtNet(config =>
{
config.Theme = ThemeKind.Crisp;
});

The option is available but we get an error on compiling the project.
How can we use a different theme in v7?

fabricio.murta
Jun 28, 2022, 6:22 PM
Hello, @baruch.gabo!

All you should need to do is, install the corresponding theme's NuGet package, Ext.Net.Classic.Theme.Crisp (https://www.nuget.org/packages/Ext.Net.Classic.Theme.Crisp).

Hope this helps!

baruch.gabo
Jun 29, 2022, 2:42 PM
Hi,
we got it.
We needed to add the Abstraction package as well as change the UseExtNetResources config to have UseThemeCrisp.

app.UseExtNetResources(config =>
{
if (env.IsDevelopment())
{
config.UseDebug(true);
}


config.UseEmbedded();
config.UseCharts();
config.UseThemeCrisp();
});

Thanks for the help!

fabricio.murta
Jun 29, 2022, 6:45 PM
Glad you got it working, and thanks for the feedback with the extra settings you needed to change in your project!