Optionalinit: AppearenceInitProtectedlistenersProtectedmaxThe storage that will be used to store the theme.
The key that will be used to store the theme.
The theme, can be dark, light or system.
Checks if the theme is dark.
Checks if the theme is light.
Checks if the theme is system.
Returns the theme depending on the system theme.
Counts the listeners that match the name, callback and options. If no arguments are passed, all listeners will be counted.
Optionalname: KOptionalcallback: AppearenceEvents[K]Optionaloptions: EventEmitterListenerOptionsEmits an event.
Returns the names of the events that have listeners.
Returns the listeners that match the name, callback and options. If no arguments are passed, all listeners will be returned.
Optionalname: KOptionalcallback: AppearenceEvents[K]Optionaloptions: EventEmitterListenerOptionsReturns the maximum number of listeners that can be registered for a single event.
Checks if the event has listeners that match the name, callback and options.
Optionalname: KOptionalcallback: AppearenceEvents[K]Optionaloptions: EventEmitterListenerOptionsRetrieves the theme from the storage and sets it.
Removes the listeners that match the name, callback and options. If no arguments are passed, all listeners will be removed.
Optionalname: KOptionalcallback: AppearenceEvents[K]Optionaloptions: EventEmitterListenerOptionsAdds a listener, which will be called when the event is emitted.
Optionally the listener can be removed after the first call with the once option.
Optionally the listener can be prepended to the listeners array with the prepend option.
Optionaloptions: EventEmitterListenerOptionsAdds a listener, which will be called only once when the event is emitted.
Optionaloptions: EventEmitterListenerOptionsAdds a listener, which will be called first when the event is emitted.
Optionaloptions: EventEmitterListenerOptionsProtectedregisterRegisters the theme event listener in environments that support it.
Sets the listeners.
Sets the maximum number of listeners that can be registered for a single event.
Stores the theme in the storage.
Toggles the theme between dark and light. If the theme is set to system, it will be set to dark or light depending on the system theme.
The Appearence class manages the theme of anything that can have an appearence.
Aracna Reference