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) { if (app.isPackaged) {
autoUpdater.autoDownload = isAutoInstallAvailable; autoUpdater.autoDownload = isAutoInstallAvailable;
autoUpdater.checkForUpdates(); autoUpdater.checkForUpdatesAndNotify();
} else if (sendEventsForDebug) { } else if (sendEventsForDebug) {
mockValuesForDebug(); mockValuesForDebug();
} }

View File

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

View File

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