Skip to main content

SystemTrayComponent

To install, run yarn template SystemTrayComponent

The SystemTrayComponent appears when the user right-clicks the Finsemble system tray icon.

The system tray has several several pre-built controls (listed in the table below) which you can remove or rearrange. You can also add your own items. Here's a quick example:

...
<Preferences />
<MenuItem onClick={() => alert("Hello world!")}>
My Custom Menu Item
</MenuItemm>
<SystemLog />
...

API

The System Tray uses the following React components from the Finsemble UI API library.

ControlSummary
PreferencesAn menu item that opens the Preferences window.
SystemLogA menu item that opens the system log.
CentralLoggerA menu item that opens the central logger.
DocumentationA menu that opens this documentation site.
RestartA menu item that restarts the SmartDesktop.
ResetA menu item that resets the SmartDesktop to its initial state, destroying all workspaces, custom apps, etc (use with caution!).
QuitA menu item that quits the SmartDesktop.