Open csells opened 2 weeks ago
The LlmMessageStyle has embedded a MarkdownStyleSheet. It has values for the important things except these four decorations:
LlmMessageStyle
MarkdownStyleSheet
blockquoteDecoration
codeblockDecoration
horizontalRuleDecoration
tableCellsDecoration
These should be set in the lightStyles method and inverted in the darkStyles method like so:
lightStyles
darkStyles
blockquoteDecoration: sh.invertDecoration(markdownStyle.blockquoteDecoration), codeblockDecoration: sh.invertDecoration(markdownStyle.codeblockDecoration), horizontalRuleDecoration: sh.invertDecoration(markdownStyle.horizontalRuleDecoration), tableCellsDecoration: sh.invertDecoration(markdownStyle.tableCellsDecoration),
Otherwise, when these decorations are used, they'll be whatever default they are and not a) match the styles of the LlmChatView but then won't switch to dark either.
LlmChatView
The
LlmMessageStyle
has embedded aMarkdownStyleSheet
. It has values for the important things except these four decorations:blockquoteDecoration
codeblockDecoration
horizontalRuleDecoration
tableCellsDecoration
These should be set in the
lightStyles
method and inverted in thedarkStyles
method like so:Otherwise, when these decorations are used, they'll be whatever default they are and not a) match the styles of the
LlmChatView
but then won't switch to dark either.