Open renderhjs opened 1 month ago
What NuGet packages are you using? When I run your code with the following NuGet packages, it seems to be working fine.
<PackageReference Include="Avalonia" Version="11.0.11" />
<PackageReference Include="Avalonia.Desktop" Version="11.0.11" />
<PackageReference Include="Avalonia.Fonts.Inter" Version="11.0.11" />
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.0.11" />
<PackageReference Include="Avalonia.AvaloniaEdit" Version="11.0.6" />
<PackageReference Include="AvaloniaEdit.TextMate" Version="11.0.6" />
Note that I had to change:
_registryOptions.GetLanguageByExtension(".cs")
to
_registryOptions.GetLanguageByExtension(".py")
Are you perhaps including an incompatible version of TextMateSharp? For example, this one works with AvaloniaEdit 11.0.6:
<PackageReference Include="TextMateSharp.Grammars" Version="1.0.56" />
But this one is incompatible:
<PackageReference Include="TextMateSharp.Grammars" Version="1.0.57" />
Followed getting started instructions from here multiple times from scratch but I can't seem to apply theme styling (colors) to the AvaloniaEdit.
The AvaloniaEdit.Demo project on GitHub seems to have different properties in the TextMate classes for example https://github.com/AvaloniaUI/AvaloniaEdit/blob/318277d9f175b8e3ec882d30c023433e96db8545/src/AvaloniaEdit.TextMate/TextMate.cs#L66 and behaves differently to what's in NuGet. When I am trying to replicate the demo implementation I can't make it work with the NuGet libraries which offer different methods in TextMate and other classes.
Sample
MainView.axaml
MainView.axaml.cs ...
Expected Result
Theme color of
ThemeName.LightPlus
or any other should render in their colorsActual result
There are no syntax theme colors applied