From 842f9b705816925096e89d9f6e9deffa654f743f Mon Sep 17 00:00:00 2001 From: Oleh Polisan Date: Sun, 23 Jun 2024 12:20:17 +0300 Subject: [PATCH] some clear-ups --- src/main/mainWindow.ts | 2 +- src/renderer/components/settings/TraySettings.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/mainWindow.ts b/src/main/mainWindow.ts index 39721da..6fe465c 100755 --- a/src/main/mainWindow.ts +++ b/src/main/mainWindow.ts @@ -535,7 +535,7 @@ export function getAccentColor() { const hexColor = `#${toHex(r255)}${toHex(g255)}${toHex(b255)}`; return hexColor; } - return undefined; + return ""; } else { return `#${systemPreferences.getAccentColor?.() || ""}`; } diff --git a/src/renderer/components/settings/TraySettings.tsx b/src/renderer/components/settings/TraySettings.tsx index 56d4d91..df14139 100644 --- a/src/renderer/components/settings/TraySettings.tsx +++ b/src/renderer/components/settings/TraySettings.tsx @@ -48,7 +48,7 @@ async function changeIcon(iconName, settings) { return; case "invalid": Toasts.show({ - message: "Please select a valid .png or .jpg image!", + message: "Please select a valid .png, .jpg or .svg image!", id: Toasts.genId(), type: Toasts.Type.FAILURE });