From 8f51ba85b5113e8e550b7d663a05d1f60f307931 Mon Sep 17 00:00:00 2001 From: Ralph Plawetzki Date: Sun, 23 Apr 2023 08:03:50 +0200 Subject: [PATCH] Revert "Widen API to show svg icons" This reverts commit 3e53d065ed3b58fc6967674e5753b37bf26da421. --- .../integrations/tray/TrayMenuController.java | 30 ++----------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/src/main/java/org/cryptomator/integrations/tray/TrayMenuController.java b/src/main/java/org/cryptomator/integrations/tray/TrayMenuController.java index 79182f2..85f8c63 100644 --- a/src/main/java/org/cryptomator/integrations/tray/TrayMenuController.java +++ b/src/main/java/org/cryptomator/integrations/tray/TrayMenuController.java @@ -28,41 +28,15 @@ static Optional 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.