Skip to content

Commit

Permalink
Revert "Widen API to show svg icons"
Browse files Browse the repository at this point in the history
This reverts commit 3e53d06.
  • Loading branch information
purejava committed Apr 23, 2023
1 parent 3e53d06 commit 8f51ba8
Showing 1 changed file with 2 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,41 +28,15 @@ static Optional<TrayMenuController> get() {
* @param tooltip Text shown when hovering
* @throws TrayMenuException thrown when adding the tray icon failed
*/
default void showTrayIcon(byte[] imageData, Runnable defaultAction, String tooltip) throws TrayMenuException {
showTrayIcon(imageData, null, defaultAction, tooltip);
};

/**
* Displays an icon on the system tray.
*
* @param imageData What image to show
* @param icon The icon name of the icon to show. Can be an icon name following
* the Freedesktop Icon Naming Specification or a path to an icon file
* @param defaultAction Action to perform when interacting with the icon directly instead of its menu
* @param tooltip Text shown when hovering
* @throws TrayMenuException thrown when adding the tray icon failed
*/
void showTrayIcon(byte[] imageData, String icon, Runnable defaultAction, String tooltip) throws TrayMenuException;

/**
* Updates the icon on the system tray.
*
* @param imageData What image to show
* @throws IllegalStateException thrown when called before an icon has been added
*/
default void updateTrayIcon(byte[] imageData) {
updateTrayIcon(imageData, null);
};
void showTrayIcon(byte[] imageData, Runnable defaultAction, String tooltip) throws TrayMenuException;

/**
* Updates the icon on the system tray.
*
* @param imageData What image to show
* @param icon The icon name of the icon to show. Can be an icon name following
* the Freedesktop Icon Naming Specification or a path to an icon file
* @throws IllegalStateException thrown when called before an icon has been added
*/
void updateTrayIcon(byte[] imageData, String icon);
void updateTrayIcon(byte[] imageData);

/**
* Show the given options in the tray menu.
Expand Down

0 comments on commit 8f51ba8

Please sign in to comment.