[CLOSED] Changing Theme on v7 from Spotless

  1. #1

    [CLOSED] Changing Theme on v7 from Spotless

    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?
    Last edited by fabricio.murta; Jun 29, 2022 at 7:45 PM.
  2. #2
    Hello, @baruch.gabo!

    All you should need to do is, install the corresponding theme's NuGet package, Ext.Net.Classic.Theme.Crisp.

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    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!
  4. #4
    Glad you got it working, and thanks for the feedback with the extra settings you needed to change in your project!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [CLOSED] Ext 5.x with Spotless Theme - Applying Global UI
    By baeseuser in forum 5.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 25, 2021, 8:17 PM
  2. [OPEN] [#1866] Ext 5.x with Spotless Theme Variants
    By baeseuser in forum 5.x Legacy Premium Help
    Replies: 8
    Last Post: Nov 22, 2021, 2:52 PM
  3. Replies: 3
    Last Post: Oct 13, 2021, 6:23 PM
  4. spotless theme on Ext.Net 5.3
    By muhammadantoniussony in forum 5.x Help
    Replies: 3
    Last Post: Nov 16, 2020, 5:02 PM

Posting Permissions