From d481164bf3f64a746ab38651c7716596746cdf3d Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Wed, 3 Jul 2024 17:03:50 -0300 Subject: [PATCH] feat: add color to update icon and notify --- src/main/events/autoupdater/check-for-updates.ts | 2 +- src/renderer/src/components/header/auto-update-sub-header.tsx | 4 ++-- src/renderer/src/components/header/header.css.ts | 4 ++++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/events/autoupdater/check-for-updates.ts b/src/main/events/autoupdater/check-for-updates.ts index f7e37481..99a65f88 100644 --- a/src/main/events/autoupdater/check-for-updates.ts +++ b/src/main/events/autoupdater/check-for-updates.ts @@ -31,7 +31,7 @@ const checkForUpdates = async (_event: Electron.IpcMainInvokeEvent) => { if (app.isPackaged) { autoUpdater.autoDownload = isAutoInstallAvailable; - autoUpdater.checkForUpdates(); + autoUpdater.checkForUpdatesAndNotify(); } else if (sendEventsForDebug) { mockValuesForDebug(); } diff --git a/src/renderer/src/components/header/auto-update-sub-header.tsx b/src/renderer/src/components/header/auto-update-sub-header.tsx index 8e390946..3d3cb18f 100644 --- a/src/renderer/src/components/header/auto-update-sub-header.tsx +++ b/src/renderer/src/components/header/auto-update-sub-header.tsx @@ -47,7 +47,7 @@ export function AutoUpdateSubHeader() { return (
- + {t("version_available_download", { version: newVersion })} @@ -64,7 +64,7 @@ export function AutoUpdateSubHeader() { className={styles.newVersionButton} onClick={handleClickInstallUpdate} > - + {t("version_available_install", { version: newVersion })} diff --git a/src/renderer/src/components/header/header.css.ts b/src/renderer/src/components/header/header.css.ts index 65445991..c93a8fe9 100644 --- a/src/renderer/src/components/header/header.css.ts +++ b/src/renderer/src/components/header/header.css.ts @@ -171,3 +171,7 @@ export const newVersionLink = style({ color: "#8e919b", fontSize: "13px", }); + +export const newVersionIcon = style({ + color: vars.color.success, +});