I have the requirement to style main menu bar of the application dynamically. Basically I store the background color in the database, and want to apply it dynamically depending on the state of the application (basuically different companies has different colours and menu bar color indicates with which company the user works).
I was not able to find any inline styling capabilities nor in Cuba nor in VAADIN
I tried various approaches:
Using Page.Styles. Basically I define new styles for some additional CSS class and then apply that class to my menubar. Problem is that I can not have predefined limited number of classes, for user can definme any hex color. Also there is no way to remove the classes from style and these build up and grow if application state changes constantly.
Not sure if there is some other way how to do that.
Could you please help me with this?