فتح مغلق

Remove General Settings Component from LeptonX Theme #6295


User avatar
0
Spospisil خلقت
  • ABP Framework version: v7.3.0
  • UI Type: Blazor WASM
  • Database System: EF Core (PostgreSQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

Hi,

I am trying to remove the General Settings component from the LeptonX theme as we don't want the user to be able to change any of these options and just have the theme default/show a custom theme that I've applied in the Module's configuration.

if I attempt to do this as descripted in https://docs.abp.io/en/commercial/latest/themes/lepton-x/blazor?UI=BlazorServer it appears to remove my custom these which I've set as the default theme via the code below.

Is there a way to just hide the component vs trying to override it or is there another way I can accomplish what I'm trying to do without the default theme from removed?

    Configure<LeptonXThemeOptions>(options =>
    {
        options.Styles.Add("salesdemo",
                new LeptonXThemeStyle(
                LocalizableString.Create<StructureCloudResource>("Theme:SalesDemo"),
                "bi bi-circle-fill"));
        options.DefaultStyle = "salesdemo";

    });

1 إجابة (إجابات)
  • User Avatar
    0
    liangshiwei خلقت
    فريق الدعم Fullstack Developer

    Hi,

    It's easy to do,

    you can hide it using the CSS

    For example:

    blazor-global-styles.css

    .lpx-settings{
      display: none !important;
    }
    
    • run the abp bundle
Made with ❤️ on ABP v8.2.0-preview Updated on مارس 25, 2024, 15:11