Select Theme based on user on BlazorServer app

Hi all,
i need to store the selected theme for the user and apply when the user login.

I store this info in a database table and have a service that retrieve it, but i cannot undestand how to apply on the mainloayout ...


Hi @daniele,

You can check this thread: Blazor Server - Change Theme Dynamically - #5 by enchev

I see the post and i have implemented the change of theme.
What i don't undestand is how i can, after login, set the theme ...