Open Closed

LeptonX Theme and Login Form #3653


User avatar
0
AdamMusson created

Hi, The LeptonX theme is now the default but there are a number of things that are annoying and difficult to work out without documentation or source code. Can you tell me where I can find guidance on the following?

I can override the Image in the Login form using the BrandingProvider but it has an annoying Lepton watermark and Lepton logo above the login form remains even though the BrandingProvider is specifying another logo which is picked up by the other main standard layout. How can I override this as I do not have the source code to see what the original form has?

There is no language selector on the Login form. Is this intentional?

There is no code available for the LeptonX theme but there is for the Lepton theme. Should we be using Lepton or LeptonX going forward?

I am using version 6.0.0-rc.3 Thanks for your help. Adam


4 Answer(s)
  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    Hi,

    We're hardly working on documentation currently.

    The watermark is the same with logo that you used.

    You can customize the logo with following CSS:

    :root {
        --lpx-logo: url('/images/logo/logo-dark.png') !important;
        --lpx-logo-icon: url('/images/logo/logo-dark-icon.png');
        --lpx-brand: #edae53;
     }
    

    Even you can set it according to the theme

      :root {
        .lpx-theme-dark {
          --lpx-logo: url('/images/logo/logo-dark.png');
          --lpx-logo-icon: url('/images/logo/logo-dark-icon.png');
          --lpx-brand: #edae53;
        }
      
        .lpx-theme-dim {
          --lpx-logo: url('/images/logo/logo-light.png.png');
          --lpx-logo-icon: url('/images/logo/logo-light-icon.png.png');
          --lpx-brand: #f15835;
        }
      
        .lpx-theme-light {
          --lpx-logo: url('/images/logo/logo-light.png.png') !important;
          --lpx-logo-icon: url('/images/logo/logo-light.png-icon.png');
          --lpx-brand: #69aada;
        }
    }
    
  • User Avatar
    0
    mattw@agilenova.com created

    Hello,

    Even after applying the :root css change, the collapsed menu is still displaying the default Lepton icon. Can I replace that with my custom logo as well?

  • User Avatar
    0
    woodyarray created

    In Blazor Server, I added the following in blazor-global-styles.css and both the logo and the logo icon were replaced when logged in.

    :root {
        --lpx-logo: url('/images/logo/logo.svg') !important;
        --lpx-logo-icon: url('/images/logo/logo-icon.svg') !important;
    }
    
    

    I also added it to global-styles.css in order for it to affect the login screen as well.

  • User Avatar
    1
    enisn created
    Support Team .NET Developer

    As @woodyarray says

    lpx-logo-icon parameter is for the icon for collapsed state.

    --lpx-logo-icon: url('/images/logo/logo-icon.svg') !important;
    

    Make sure both Authentication Server and Client Application styles are updated if you're using a tiered architecture

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11