hello any development on this question please ? is it feasible at all / difficult / or downright impossible with the current code base? thank you very much
is it possible to have two pages on the same Blazor application one using LeptonX Dark and the other LeptonX Light ? I am using the source code version of LeptonX and have access to modify the Side Menu Layout I am using as a base. ideally I would like to be able to set this functionality programmatically without the user having to chose from the general settings UI menu. thanks
https://drive.google.com/file/d/1_R3InHRny_ya_QMvWLdt6F0XF7ojwOEz/view?usp=sharing
I cleared the log in between activating and deactivating that feature so the two files can be compared. I didn't see any errors... thanks
i think i fixed the problem although not in a sustainable way. at least it gives us an idea of where the problem is:
public class ChatToolbarContributor : IToolbarContributor
{
public async Task ConfigureToolbarAsync(IToolbarConfigurationContext context)
{
//var featureChecker = context.ServiceProvider.GetRequiredService<IFeatureChecker>();
if (context.Toolbar.Name == StandardToolbars.Main) // && await featureChecker.IsEnabledAsync(ChatFeatures.Enable)
{
//var permissionChecker = context.ServiceProvider.GetRequiredService<IPermissionChecker>();
//if (await permissionChecker.IsGrantedAsync(ChatPermissions.Messaging))
//{
context.Toolbar.Items.Add( new ToolbarItem(typeof(BlazorServerMessagesToolbarItem)) );
//}
}
}
}
when i disable the feature checker and permission checker everything is normal the dark theme is applied and the right bundles are loaded. if i use any of those two features (or both) we lose the theme. i didn't read the entire codebase enough to understand the mechanisms behind the scene but at least it gives us a starting point to investigate. please note that i am using the blazor ui template app with both the chat module and leptonx from code (both modules still mostly unmodified from their original code)
I am using the chat module (with the source code option not packages) and I'm noticing that as soon as I include the toolbar contributor to add the envelope with the outstanding number of messages two things happen: the style of the page (that was dark) is no longer active, the style files are not bundled (lpx-theme-color-dark and lpx-theme-bootstrap-dark), and the buttons on the toolbar stop responding (settings button and user menu)
this is the part that if commented out brings back the normal behavior:
Configure<AbpToolbarOptions>(options => { options.Contributors.Add(new ChatToolbarContributor()); });
I tried with a dummy component as well that has no functionality or dependencies at all and I get the same result. as soon as I add a toolbar contributor from the chat module I lose style and toolbar functionality.
can you please help or point me to the right direction to investigate ? thanks