Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

Eto Dialogs - Theme Color

$
0
0

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...

I’ve attached a sample for you to review.

TestButtonDialog.zip (841 Bytes)

Thanks,

– Dale

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles