mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-09 11:42:21 +03:00
feat: add color to update icon and notify
This commit is contained in:
parent
138f33e0c3
commit
d481164bf3
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -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>
|
||||||
|
@ -171,3 +171,7 @@ export const newVersionLink = style({
|
|||||||
color: "#8e919b",
|
color: "#8e919b",
|
||||||
fontSize: "13px",
|
fontSize: "13px",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
export const newVersionIcon = style({
|
||||||
|
color: vars.color.success,
|
||||||
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user