feat: add color to update icon and notify

This commit is contained in:
Zamitto 2024-07-03 17:03:50 -03:00
parent 138f33e0c3
commit d481164bf3
3 changed files with 7 additions and 3 deletions

View File

@ -31,7 +31,7 @@ const checkForUpdates = async (_event: Electron.IpcMainInvokeEvent) => {
if (app.isPackaged) {
autoUpdater.autoDownload = isAutoInstallAvailable;
autoUpdater.checkForUpdates();
autoUpdater.checkForUpdatesAndNotify();
} else if (sendEventsForDebug) {
mockValuesForDebug();
}

View File

@ -47,7 +47,7 @@ export function AutoUpdateSubHeader() {
return (
<header className={styles.subheader}>
<Link to={releasesPageUrl} className={styles.newVersionLink}>
<SyncIcon size={12} />
<SyncIcon className={styles.newVersionIcon} size={12} />
<small>
{t("version_available_download", { version: newVersion })}
</small>
@ -64,7 +64,7 @@ export function AutoUpdateSubHeader() {
className={styles.newVersionButton}
onClick={handleClickInstallUpdate}
>
<SyncIcon size={12} />
<SyncIcon className={styles.newVersionIcon} size={12} />
<small>
{t("version_available_install", { version: newVersion })}
</small>

View File

@ -171,3 +171,7 @@ export const newVersionLink = style({
color: "#8e919b",
fontSize: "13px",
});
export const newVersionIcon = style({
color: vars.color.success,
});