AbstractShade
- class omni.ui.constant_utils.AbstractShade
Bases:
object
The implementation of shades for custom style parameter type.
The user has to reimplement methods _store and _find to set/get the value in the specific store.
Methods
__init__
()set_shade
([name])Set the default shade.
shade
([default])Save the given shade, pick the color and apply it to ui.ColorStore.
- __init__()
- set_shade(name: Optional[str] = None)
Set the default shade.
- shade(default: Optional[Any] = None, **kwargs) str
Save the given shade, pick the color and apply it to ui.ColorStore.