mirror of
https://github.com/kilyabin/psysonic.git
synced 2026-07-22 14:35:41 +00:00
feat(updater): polish macOS update modal with countdown, trust badges, clean button states
- Footer buttons are now state-dependent: Skip / Remind later only show during idle; the install button no longer leaves a gap when it disappears, and "Remind later" stops shifting between states - Post-install on macOS shows a 3-second visible restart countdown with a "Restart now" button instead of triggering an invisible relaunch that sometimes didn't actually fire - macOS idle state now explains the in-place update model (no DMG download) and shows trust badges: "Notarized by Apple" + "Signature verified" as an at-a-glance trust signal - Download state during install hides all secondary buttons so the progress bar stands alone - New i18n keys in en/de; fr/nl/zh/nb/ru/es fall back to the English defaultValue until translated in a follow-up Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -769,6 +769,53 @@
|
||||
gap: var(--space-2);
|
||||
font-size: 12px;
|
||||
}
|
||||
/* macOS Tauri Updater — idle state info block */
|
||||
.update-modal-mac-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-2);
|
||||
}
|
||||
.update-modal-mac-info-main {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
.update-modal-mac-info-sub {
|
||||
font-size: 12px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.45;
|
||||
}
|
||||
.update-modal-trust-badges {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-2);
|
||||
margin-top: var(--space-1);
|
||||
}
|
||||
.update-modal-trust-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
font-size: 11px;
|
||||
color: var(--positive, var(--accent));
|
||||
background: var(--bg-glass);
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 3px 8px;
|
||||
}
|
||||
.update-modal-trust-badge svg {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
/* macOS Tauri Updater — done state (after install, before/during restart) */
|
||||
.update-modal-done-icon {
|
||||
align-self: center;
|
||||
color: var(--positive, var(--accent));
|
||||
margin-bottom: var(--space-1);
|
||||
}
|
||||
.update-modal-done-countdown {
|
||||
font-size: 12px;
|
||||
color: var(--text-secondary);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
/* AUR hint */
|
||||
.update-modal-aur {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user