Visual Theme issue

When I set my Visual Theme to dark from design mode, after my app starts up, applying a scheme doesn’t change any colors, but when my Visual Theme is set to custom, the scheme works as expected. However, the scrollbars are then light instead of dark. I don’t understand how a Visual Theme takes precedent over a syntax scheme.

SOLVED: Setting the syntaxedit VisualThemeType to VisualStudioCode fixed both the lexer scheme colors issue and the scrollbar color issue. The problem I was experiencing is when the theme type was set to Dark, only Some of my lexer scheme colors would apply to the syntaxedit. The idents would remain gray, for example. Setting the theme type to Custom would let all my scheme colors work but then the scrollbar would be white.

Hi Roger,

Setting VisualTheme to Custom implies that you provide your own visual theme and override the visual theme colors.
Please take at the Visual Theme quick start project; the relevant code is here:

syntaxEdit1.VisualTheme = new CustomVisualTheme();

With the Custom Visual theme, you can override colors to create different themes. For example, you can set ScrollBarBackground to a different value. If you need to modify only a few colors in your custom theme compared to the Dark theme, it’s best to derive it from DarkVisualTheme

Kind regards,
Dmitry