I have a situation where a user can select different themes. The problem is with the date-picker. The repository for this plugin is here:
GitHub: uxsolutions bootstrap datepicker
The problem is illustrated in the below image:
I set the foreground and background colors on the body tag using javascript. The values are sent from the server. So when the colors are white on black, most of the datepicker window is blank. Now I did come up with a partial solution using a click event on the date field. That solution basically looks for any DIVs that's using the datepicker css class and sets the colors to the theme colors. This is not an ideal solution.
What I would like to do is override the CSS color properties in the CSS classes themselves, but from my reading on here, that doesn't seem to be possible. I dug through the code and it uses HTML templates to generate the different views. It generates everything at once and then hides/shows different DIV frames based on user input. Based on the fact that it's using a find function to locate where to place things, I can't really modify anything. Short of a rewrite for this plugin to accept color themes, Is there a solution to this problem that I am not seeing?