Internal
Private
Readonly
#dictionaryThe internal dictionary that holds the registered themes.
Private
Readonly
#themes$The subject that emits an updated array of registered themes whenever a change occurs.
Readonly
themes$The observable that emits the collection of registered themes when it changes.
Registers a new theme and emits the changed collection of themes.
If a theme with the same ID is already registered, the registered theme will be merged with the new one.
Themes without ID will be ignored.
The new theme to register
Removes the provided theme from the registry and emits the changed collection of themes.
The theme to remove.
RbThemeRegistryService is an injectable service that allows for registering and unregistering themes, as well as providing access to the currently registered themes. It also provides an observable of themes that can be used to notify subscribers of changes to the registered themes.