Good afternoon,
We are struggling to load our custom theme on certain pages. It seems to work on the default page and any extra pages we add but It fails on any account pages, most of the pages that pre-exist.
We have followed the below article and been through it several times but unfortunately we have not been able to solve it. https://docs.abp.io/en/commercial/latest/themes/lepton-x/blazor?UI=BlazorServer
This is the code we have added to our BlazorModule.cs file
Configure<LeptonXThemeOptions>(options =>
{
options.Styles.Add("CustomTheme",
new LeptonXThemeStyle(
LocalizableString.Create<ProjectResource>("CustomTheme"),
"bi bi-circle-fill"));
options.DefaultStyle = "CustomTheme";
// Removing existing themes
options.Styles.Remove(LeptonXStyleNames.Dark);
options.Styles.Remove(LeptonXStyleNames.System);
options.Styles.Remove(LeptonXStyleNames.Dim);
options.Styles.Clear();
});
Configure<LeptonXThemeMvcOptions>(options =>
{
options.ApplicationLayout = LeptonXMvcLayouts.TopMenu;
});
Configure<LeptonXThemeBlazorOptions>(options =>
{
options.Layout = LeptonXBlazorLayouts.TopMenu;
});
As far as we understand the login/register pages use the MVC options which is why we have set the layout in both places.
We have the custom CSS file stored in the below as per the documentation
_content\Volo.Abp.AspNetCore.Components.Web.LeptonXTheme\top-menu\css\ bootstrap-CustomTheme.css _content\Volo.Abp.AspNetCore.Components.Web.LeptonXTheme\top-menu\css\ CustomTheme.css
The end result is as follows:
On the dashboard we see what we assume is the correct path in the network tab:
https://localhost:44351/_content/Volo.Abp.AspNetCore.Components.Web.LeptonXTheme/top-menu/css/bootstrap-CustomTheme.css
On the login page we see it trying to get the CSS from a different location to the dashboard screen and the layout is also pointing to the side-menu and not the top-menu
https://localhost:44351/Themes/LeptonX/Global/side-menu/css/bootstrap-CustomTheme.css
Finally some other pages such as the Account Manage page is not loading any styles either and it appears to be getting the CSS from the wrong location, however it is using the right layout option.
https://localhost:44351/Themes/LeptonX/Global/top-menu/css/bootstrap-CustomTheme.css
In summary:
Any help would be greatly appreciated and if we can provide any other information then please let us know.
I need to change the UI of the MainHeaderToolbarUserMenu but cant find any documentation on how to do this. Please can you explain how I can do this.