Additional themes and changes to font and theme configuration API #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR includes two new themes and minor API changes around fonts and themes.
The added
vivid-light
andvivid-dark
themes provide bright series colors. The first colors being red, yellow, help highlight the importance of the first two series items.The full theme list is now
light
,dark
,vivid-light
,vivid-dark
,ant
andgrafana
.API updates to how Themes and Fonts are configured for charts:
ColorPalette
to be immutable.ColorPalette
are set directly instead of setting names. This allows you to avoid the central font and theme store if you want. You need to useGetTheme
orGetFont
to convert the installed name into an instance for the chat configuration.FontFamily
has been removed (except for echarts where it is taken in from json).SetDefaultTableSetting
function has been removed. Default color logic has been improved to consider if the theme is dark or not, but any non-default settings will need to be specified in the options when creating the table.README will be updated later