I think this blog can help you out, the same functionality can be applied to user-roles. On login / startup make a a helper entity and apply a style based on the helper attributes!
How to implement dark mode in your apps
It could also be possible to do it in pure css based on the class Daan above here gave.
So something like this:
.profile-desktop {
.yournavigation-class {
your:properties;
}
}
Hi Sohil,
Mendix adds a class to the HTML body based on the userrole of the user:
So any CSS specific for a certain userrole can be prefixed by:
body.role-userroleX {
//Userrole specific CSS
}
Hope this helps!