serdarciplak / BlazorMonaco

Blazor component for Microsoft's Monaco Editor which powers Visual Studio Code.
https://serdarciplak.github.io/BlazorMonaco/
MIT License
446 stars 98 forks source link

Theming for DiffEditor #31

Closed mkalinski93 closed 3 years ago

mkalinski93 commented 3 years ago

Hey,

I was just curious to find out if there´s a "SetTheme" method for the diff editor. The DiffEditorConstructionOptions doesn´t have a "Theme" property as well.

serdarciplak commented 3 years ago

Actually, there is a property named "Theme" in the DiffEditorConstructionOptions class. But looks like I've missed adding it to the C# class. I'll add it in the next release. Till then, you can use the static SetTheme method in the MonacoEditorBase class.

mkalinski93 commented 3 years ago

Thanks for the hint using "MonacoEditorBase .SetTheme".

serdarciplak commented 3 years ago

I've added the missing property to the DiffEditorConstructionOptions class. It's available in version 2.1.0