I changed the dashboard theme from light to dark. Most of the elements follow the given color schemes.
ui-table: does keeps the original color. Is there any "trick" to move all u-tables from light to dark scheme?
chart: the plotted lines keep the selected colors. Is there any chance to have the series color (at least the first one) "follow" the theme color? Or can i modify the color in the msg?
now visible with helpt ui-table -- sometimes with table header / sometimes without, sometimes dark formatted in light theme, and here light formatted in dark theme.
Hi,
did some additional tests and did not found a problem (using my own tables and the example flow:
I noticed that you have to do a full deploy if you change the dashboard theme. Otherwise the css of tabulator will not change. As I do not change the theme every now and then I believe this is a doable workaround?
Perhaps you can describe your problem in more detail. A) changing the theme and B) using msg.ui_control.headerVisble separate.
If I make the header invisible this:
a) survives page reloads
b) is on new clients invisible too
c) changes on different clients simultaneously
I did some further testing.
Starting position: Dark theme but all tables had formatting in "light mode" - shouldnt have.
Hiding header tables didn't work
Then I switched theme to light, did full deploy.
Result: all tables kept the same formatting (what was OK for light theme).
Again, hiding header did not work.
Then I switched theme to dark again, did full deploy.
Result: all tables kept the same formatting - what is not OK for dark theme.
Again, hiding header did not work
Then in dark mode I did reset the base color to that green blue color and did full deploy.
Result: all tables changed formatting according to dark mode and I am also able to hide the header for selected tables.
Do you do some "hidden" calculation using the base color and depending on that calculation you give recommendation for the color of side bar (dark or light) and also for the table formatting (dark style, light style)?
A) No you do not need to clear the cache. A full deploy (perhaps browser reload) should work.
B) you need 0.3.3 of ui-table. It is updated on github but npm didn`t updated. There it is still 0.3.2.
In 0.3.2 you are not able to hide the header (see above). perhaps install from github?
When I (using the example flow) switch from light to dark with a full deploy the theme and table css changes correctly.
@dceejay Do you know why npm didn't update to 0.3.3?
What do you mean by "base color?" Interesting - I can't see a correlation between the base settings color and the style or any ui-table element. Only the dashboard theme (light or dark) decides which tabulator css is loaded to match the overall color scheme as good as possible.
In theme style "Dark", use the standard color. Tables are "dark"- see picture Dark.
Then change to a bright color, example 150 200 220 an do a full deploy. Result is that all tables change to a "light mode" - also the side bar. See picture bright.
the colour is set by the isDark function call - which for some reason is picking up from the sidebar background colour rather than the main background colour - no idea why - and I coded it So apologies - will fix and test - but will in the main dashboard next release.