diff --git a/src/renderer/components/settings/TrayIconImagePicker.tsx b/src/renderer/components/settings/TrayIconImagePicker.tsx new file mode 100644 index 0000000..352e51e --- /dev/null +++ b/src/renderer/components/settings/TrayIconImagePicker.tsx @@ -0,0 +1,62 @@ +/* + * SPDX-License-Identifier: GPL-3.0 + * Vesktop, a desktop app aiming to give you a snappier Discord Experience + * Copyright (c) 2023 Vendicated and Vencord contributors + */ + +import { Button, Forms, Toasts } from "@vencord/types/webpack/common"; + +import { SettingsComponent } from "./Settings"; + +export const TrayIconImagePicker: SettingsComponent = ({ settings }) => { + return ( + <> + + Tray icon is currently {" "} + {settings.trayIconPath ? ( + { + e.preventDefault(); + VesktopNative.fileManager.showItemInFolder(settings.trayIconPath!); + }} + > + {settings.trayIconPath} + + ) : ( + "the default location" + )} + +
+ + +
+ + ); +};