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.
Control | Summary |
---|---|
Preferences | An menu item that opens the Preferences window. |
SystemLog | A menu item that opens the system log. |
CentralLogger | A menu item that opens the central logger. |
Documentation | A menu that opens this documentation site. |
Restart | A menu item that restarts the SmartDesktop. |
Reset | A menu item that resets the SmartDesktop to its initial state, destroying all workspaces, custom apps, etc (use with caution!). |
Quit | A menu item that quits the SmartDesktop. |