For those of you creating dialogs or forms using Eto, if you want to add theme color (e.g. dark, light) support to your forms, then add the following statement to your dialog or form initializer.
Rhino.UI.EtoExtensions.UseRhinoStyle(self)
For example:
class MyDialog(forms.Dialog[bool]):
def __init__(self):
Rhino.UI.EtoExtensions.UseRhinoStyle(self)
# TODO: do additional initialization here...
This works great for Dark Mode Dale thanks!
I have some icons I invert when the mode changes, is there a way to have the style inform them, or an event I can subscribe to, to know when the style swaps?