Liquid glass диалог, масштабирование UI, фикс safeStorage

- AddAccountDialog: полный liquid glass редизайн (saturate(2.8), призматический торец, вдавленные инпуты)
- AppShell: окно приветствия приведено к тому же glass-стилю
- Настройки: слайдер масштаба 50–200% через webContents.setZoomFactor() (IPC)
- credential-store: fallback на plain:base64 когда safeStorage недоступен (Linux без keychain)
- error-msg: user-select: text для копирования текста ошибки

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
d.a.kolesov 2026-04-01 13:09:53 +07:00
parent 44f3224dc5
commit 9f1cde5b17
8 changed files with 488 additions and 84 deletions

4
package-lock.json generated
View file

@ -1,11 +1,11 @@
{
"name": "vue-mail",
"name": "aero-mail",
"version": "0.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "vue-mail",
"name": "aero-mail",
"version": "0.1.0",
"hasInstallScript": true,
"dependencies": {

View file

@ -43,6 +43,10 @@ function createWindow(): BrowserWindow {
Menu.setApplicationMenu(null)
ipcMain.handle('app:setZoom', (event, { factor }: { factor: number }) => {
event.sender.setZoomFactor(Math.max(0.5, Math.min(3, factor)))
})
app.whenReady().then(async () => {
await accountManager.initialize()

View file

@ -16,9 +16,16 @@ export class CredentialStore {
if (!existsSync(this.filePath)) return
const raw = await readFile(this.filePath, 'utf-8')
const parsed = JSON.parse(raw) as Record<string, string>
for (const [key, encrypted] of Object.entries(parsed)) {
for (const [key, value] of Object.entries(parsed)) {
try {
this.data[key] = safeStorage.decryptString(Buffer.from(encrypted, 'base64'))
if (value.startsWith('plain:')) {
this.data[key] = Buffer.from(value.slice(6), 'base64').toString()
} else if (value.startsWith('enc:')) {
this.data[key] = safeStorage.decryptString(Buffer.from(value.slice(4), 'base64'))
} else {
// старый формат без префикса — пробуем расшифровать
this.data[key] = safeStorage.decryptString(Buffer.from(value, 'base64'))
}
} catch {
console.warn(`Failed to decrypt credential for ${key}`)
}
@ -43,14 +50,20 @@ export class CredentialStore {
}
private async persist(): Promise<void> {
const encrypted: Record<string, string> = {}
const canEncrypt = safeStorage.isEncryptionAvailable()
const out: Record<string, string> = {}
for (const [key, value] of Object.entries(this.data)) {
encrypted[key] = safeStorage.encryptString(value).toString('base64')
if (canEncrypt) {
out[key] = 'enc:' + safeStorage.encryptString(value).toString('base64')
} else {
// safeStorage недоступен (нет keychain-демона в системе) — храним plain
out[key] = 'plain:' + Buffer.from(value).toString('base64')
}
}
const dir = dirname(this.filePath)
if (!existsSync(dir)) {
await mkdir(dir, { recursive: true })
}
await writeFile(this.filePath, JSON.stringify(encrypted, null, 2), 'utf-8')
await writeFile(this.filePath, JSON.stringify(out, null, 2), 'utf-8')
}
}

View file

@ -80,7 +80,7 @@ const isFormValid = computed(() => imapHost.value && imapUsername.value && imapP
</div>
<!-- Форма учётных данных -->
<div v-if="step === 'credentials'" class="dialog-body">
<div v-if="step === 'credentials'" class="dialog-body" style="overflow-y:auto;max-height:calc(85vh - 70px)">
<div v-if="error" class="error-msg">{{ error }}</div>
<form @submit.prevent="handleSubmit">
@ -128,47 +128,112 @@ const isFormValid = computed(() => imapHost.value && imapUsername.value && imapP
</template>
<style scoped>
/* ── Overlay ────────────────────────────────────────────── */
.dialog-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.5);
backdrop-filter: var(--blur-md);
-webkit-backdrop-filter: var(--blur-md);
background: rgba(9, 9, 14, 0.40);
backdrop-filter: blur(20px) saturate(1.6);
-webkit-backdrop-filter: blur(20px) saturate(1.6);
display: flex;
align-items: center;
justify-content: center;
z-index: 100;
animation: overlay-in 180ms ease;
}
@keyframes overlay-in {
from { opacity: 0; }
to { opacity: 1; }
}
/* ── Dialog ─────────────────────────────────────────────── */
.dialog {
background: rgba(255, 255, 255, 0.06);
backdrop-filter: var(--blur-xl);
-webkit-backdrop-filter: var(--blur-xl);
border: 1px solid var(--glass-border-strong);
border-radius: var(--radius-xl);
width: 460px;
max-height: 80vh;
overflow-y: auto;
position: relative;
width: 560px;
border-radius: 20px;
overflow: hidden; /* clips content к скруглениям; скролл на .dialog-body */
/*
* Настоящее стекло — светлое, а не тёмное.
* Высокий saturate делает цвета фона вибрирующими сквозь панель.
*/
background: rgba(255, 255, 255, 0.12);
backdrop-filter: blur(72px) saturate(2.8);
-webkit-backdrop-filter: blur(72px) saturate(2.8);
box-shadow:
var(--glass-specular),
var(--shadow-xl),
0 0 0 0.5px rgba(255, 255, 255, 0.04) inset;
/* Главный бликовый штрих — самый важный элемент glass */
inset 0 1px 0 rgba(255, 255, 255, 0.60),
/* Мягкое объёмное свечение под бликом */
inset 0 3px 16px rgba(255, 255, 255, 0.05),
/* Rim-свет слева и справа */
inset 1px 0 0 rgba(255, 255, 255, 0.08),
inset -1px 0 0 rgba(255, 255, 255, 0.05),
/* Нижний тёмный край (толщина стекла) */
inset 0 -1px 0 rgba(0, 0, 0, 0.20),
/* Внешний ring */
0 0 0 1px rgba(255, 255, 255, 0.14),
/* Тень глубины */
0 8px 32px rgba(0, 0, 0, 0.45),
0 32px 80px rgba(0, 0, 0, 0.65);
animation: dialog-in 280ms cubic-bezier(0.34, 1.15, 0.64, 1);
}
@keyframes dialog-in {
from { opacity: 0; transform: scale(0.92) translateY(14px); }
to { opacity: 1; transform: scale(1) translateY(0); }
}
/*
* Призматический верхний торец.
* Одна горизонтальная линия с радужным градиентом —
* имитация дисперсии света на краю стекла.
*/
.dialog::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(
90deg,
rgba(120, 210, 255, 0.55) 0%,
rgba(255, 255, 255, 0.85) 22%,
rgba(200, 255, 140, 0.65) 45%,
rgba(255, 255, 255, 0.85) 68%,
rgba(190, 140, 255, 0.50) 100%
);
pointer-events: none;
z-index: 10;
}
/* ── Header ─────────────────────────────────────────────── */
.dialog-header {
display: flex;
align-items: center;
padding: 18px 22px;
border-bottom: 1px solid var(--glass-border);
padding: 22px 28px;
gap: 12px;
/* Верхний слой — чуть ярче основного стекла */
background: linear-gradient(
to bottom,
rgba(255, 255, 255, 0.10) 0%,
rgba(255, 255, 255, 0.04) 100%
);
border-bottom: 1px solid rgba(255, 255, 255, 0.10);
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}
.dialog-header h2 {
flex: 1;
font-size: 15px;
font-size: 17px;
font-weight: 600;
letter-spacing: -0.2px;
}
/* ── Close button ───────────────────────────────────────── */
.close-btn {
width: 28px;
height: 28px;
@ -179,64 +244,104 @@ const isFormValid = computed(() => imapHost.value && imapUsername.value && imapP
font-size: 18px;
line-height: 1;
color: var(--text-muted);
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.12);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.18),
inset 0 -1px 0 rgba(0, 0, 0, 0.12);
transition:
background var(--transition-fast),
border-color var(--transition-fast),
color var(--transition-fast),
box-shadow var(--transition-fast);
}
.close-btn:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.16);
background: rgba(255, 255, 255, 0.16);
color: var(--text-primary);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.12),
inset 0 1px 0 rgba(255, 255, 255, 0.28),
0 2px 8px rgba(0, 0, 0, 0.2);
}
.close-btn:active {
background: rgba(255, 255, 255, 0.04);
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
transform: scale(0.92);
background: rgba(255, 255, 255, 0.05);
box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.28);
transform: scale(0.89);
}
/* ── Body ───────────────────────────────────────────────── */
.dialog-body {
padding: 22px;
padding: 28px;
}
/* ── Error ──────────────────────────────────────────────── */
.error-msg {
padding: 10px 14px;
background: rgba(244, 71, 71, 0.12);
border: 1px solid rgba(244, 71, 71, 0.4);
user-select: text;
-webkit-user-select: text;
cursor: text;
background: rgba(255, 60, 60, 0.10);
border: 1px solid rgba(255, 80, 80, 0.30);
border-top-color: rgba(255, 110, 110, 0.50);
border-radius: var(--radius-md);
color: var(--danger);
font-size: 12px;
margin-bottom: 18px;
line-height: 1.5;
box-shadow:
inset 0 1px 0 rgba(255, 100, 100, 0.10),
0 2px 12px rgba(255, 30, 30, 0.07);
}
/* ── Form ───────────────────────────────────────────────── */
.form-group {
margin-bottom: 16px;
margin-bottom: 18px;
}
.form-group label {
display: block;
font-size: 11px;
font-weight: 500;
color: var(--text-muted);
margin-bottom: 5px;
font-weight: 600;
color: rgba(255, 255, 255, 0.40);
margin-bottom: 7px;
text-transform: uppercase;
letter-spacing: 0.4px;
letter-spacing: 0.6px;
}
/*
* Инпуты — тёмные «ниши», вдавленные в стекло.
* Тёмный фон на светлом стекле = ощущение глубины.
*/
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"] {
width: 100%;
padding: 12px 14px;
font-size: 14px;
border-radius: var(--radius-md);
background: rgba(0, 0, 0, 0.22);
border: 1px solid rgba(255, 255, 255, 0.08);
border-top-color: rgba(0, 0, 0, 0.30);
box-shadow:
inset 0 2px 6px rgba(0, 0, 0, 0.28),
0 1px 0 rgba(255, 255, 255, 0.07);
backdrop-filter: none;
transition:
background var(--transition-fast),
border-color var(--transition-fast),
box-shadow var(--transition-fast);
}
.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="number"]:focus {
background: rgba(0, 0, 0, 0.28);
border-color: color-mix(in srgb, var(--accent) 50%, transparent);
border-top-color: rgba(0, 0, 0, 0.25);
box-shadow:
inset 0 2px 6px rgba(0, 0, 0, 0.22),
0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent),
0 1px 0 rgba(255, 255, 255, 0.06);
}
.form-row {
@ -244,64 +349,154 @@ const isFormValid = computed(() => imapHost.value && imapUsername.value && imapP
gap: 12px;
}
.flex-1 {
flex: 1;
}
.flex-1 { flex: 1; }
/* ── Checkbox ───────────────────────────────────────────── */
.checkbox-label {
display: flex !important;
align-items: center;
gap: 8px;
cursor: pointer;
text-transform: none !important;
letter-spacing: 0 !important;
font-size: 12px !important;
font-weight: 400 !important;
color: var(--text-secondary) !important;
}
.checkbox-label input[type="checkbox"] {
width: auto;
appearance: none;
-webkit-appearance: none;
width: 16px;
height: 16px;
min-width: 16px;
padding: 0;
position: relative;
cursor: pointer;
border-radius: var(--radius-xs);
background: rgba(0, 0, 0, 0.22);
border: 1px solid rgba(255, 255, 255, 0.09);
border-top-color: rgba(0, 0, 0, 0.28);
box-shadow:
inset 0 2px 4px rgba(0, 0, 0, 0.25),
0 1px 0 rgba(255, 255, 255, 0.07);
transition:
background var(--transition-fast),
box-shadow var(--transition-fast);
}
.checkbox-label input[type="checkbox"]:checked {
background: var(--accent);
border-color: color-mix(in srgb, var(--accent) 60%, rgba(0,0,0,0.5));
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.35),
0 0 0 1px rgba(255, 255, 255, 0.14),
0 2px 8px color-mix(in srgb, var(--accent) 45%, transparent);
}
.checkbox-label input[type="checkbox"]:checked::after {
content: '';
position: absolute;
left: 4px;
top: 2px;
width: 5px;
height: 8px;
border: 2px solid #0d1a00;
border-top: none;
border-left: none;
transform: rotate(45deg);
}
.checkbox-label input[type="checkbox"]:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
/* ── Submit ─────────────────────────────────────────────── */
.submit-btn {
width: 100%;
padding: 11px;
background: var(--accent);
color: var(--accent-text);
padding: 14px;
border-radius: var(--radius-md);
font-weight: 600;
font-size: 13px;
margin-top: 6px;
transition: background var(--transition-fast), transform var(--transition-fast);
font-size: 15px;
margin-top: 10px;
color: var(--accent-text);
background: linear-gradient(
to bottom,
color-mix(in srgb, var(--accent) 88%, white 12%) 0%,
var(--accent) 100%
);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.40),
inset 0 -1px 0 rgba(0, 0, 0, 0.12),
0 2px 10px color-mix(in srgb, var(--accent) 30%, transparent),
0 1px 3px rgba(0, 0, 0, 0.25);
transition:
background var(--transition-fast),
box-shadow var(--transition-fast),
transform var(--transition-fast);
}
.submit-btn:hover:not(:disabled) {
background: var(--accent-hover);
background: linear-gradient(
to bottom,
color-mix(in srgb, var(--accent-hover) 88%, white 12%) 0%,
var(--accent-hover) 100%
);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.45),
inset 0 -1px 0 rgba(0, 0, 0, 0.10),
0 4px 18px color-mix(in srgb, var(--accent) 40%, transparent),
0 1px 4px rgba(0, 0, 0, 0.22);
transform: translateY(-1px);
}
.submit-btn:active:not(:disabled) {
transform: translateY(0);
box-shadow:
inset 0 2px 5px rgba(0, 0, 0, 0.18),
0 1px 4px color-mix(in srgb, var(--accent) 20%, transparent);
}
.submit-btn:disabled {
opacity: 0.4;
opacity: 0.35;
cursor: not-allowed;
}
/* ── Testing state ──────────────────────────────────────── */
.testing-state {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
padding: 40px 20px;
gap: 16px;
padding: 48px 20px;
color: var(--text-muted);
}
.spinner {
width: 32px;
height: 32px;
border: 3px solid var(--border);
border-top-color: var(--accent);
position: relative;
width: 36px;
height: 36px;
}
.spinner::before {
content: '';
position: absolute;
inset: 0;
border-radius: 50%;
animation: spin 0.8s linear infinite;
border: 2px solid rgba(255, 255, 255, 0.08);
}
.spinner::after {
content: '';
position: absolute;
inset: 0;
border-radius: 50%;
border: 2px solid transparent;
border-top-color: var(--accent);
border-right-color: color-mix(in srgb, var(--accent) 35%, transparent);
filter: drop-shadow(0 0 4px var(--accent));
animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes spin {

View file

@ -86,7 +86,7 @@ function stopResize(): void {
<div v-if="accountsStore.accounts.length === 0 && !accountsStore.loading && !showAddAccount" class="empty-state">
<div class="empty-content">
<div class="empty-icon">
<AppIcon name="envelope" :size="52" />
<AppIcon name="envelope" :size="72" />
</div>
<h2>Добро пожаловать в Aero Mail</h2>
<p>Добавьте почтовый аккаунт для начала работы</p>
@ -200,51 +200,103 @@ function stopResize(): void {
}
.empty-content {
position: relative;
text-align: center;
padding: 48px;
background: rgba(255, 255, 255, 0.04);
backdrop-filter: var(--blur-lg);
-webkit-backdrop-filter: var(--blur-lg);
border: 1px solid var(--glass-border-strong);
border-radius: var(--radius-xl);
box-shadow: var(--glass-specular), var(--shadow-xl);
padding: 72px 80px;
width: 560px;
overflow: hidden;
background: rgba(255, 255, 255, 0.12);
backdrop-filter: blur(72px) saturate(2.8);
-webkit-backdrop-filter: blur(72px) saturate(2.8);
border-radius: 20px;
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.60),
inset 0 3px 16px rgba(255, 255, 255, 0.05),
inset 1px 0 0 rgba(255, 255, 255, 0.08),
inset -1px 0 0 rgba(255, 255, 255, 0.05),
inset 0 -1px 0 rgba(0, 0, 0, 0.20),
0 0 0 1px rgba(255, 255, 255, 0.14),
0 8px 32px rgba(0, 0, 0, 0.45),
0 32px 80px rgba(0, 0, 0, 0.65);
}
/* Призматический торец */
.empty-content::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(
90deg,
rgba(120, 210, 255, 0.55) 0%,
rgba(255, 255, 255, 0.85) 22%,
rgba(200, 255, 140, 0.65) 45%,
rgba(255, 255, 255, 0.85) 68%,
rgba(190, 140, 255, 0.50) 100%
);
pointer-events: none;
}
.empty-icon {
margin-bottom: 20px;
opacity: 0.22;
color: var(--text-muted);
margin-bottom: 28px;
opacity: 0.30;
color: var(--text-primary);
}
.empty-content h2 {
font-size: 18px;
font-size: 24px;
font-weight: 600;
margin-bottom: 8px;
margin-bottom: 10px;
letter-spacing: -0.3px;
color: var(--text-primary);
}
.empty-content p {
color: var(--text-muted);
font-size: 13px;
margin-bottom: 28px;
color: var(--text-secondary);
font-size: 14px;
margin-bottom: 36px;
}
.add-btn {
padding: 10px 28px;
background: var(--accent);
padding: 12px 36px;
background: linear-gradient(
to bottom,
color-mix(in srgb, var(--accent) 88%, white 12%) 0%,
var(--accent) 100%
);
color: var(--accent-text);
border-radius: var(--radius-md);
font-weight: 600;
font-size: 13px;
transition: background var(--transition-fast), transform var(--transition-fast);
font-size: 14px;
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.40),
inset 0 -1px 0 rgba(0, 0, 0, 0.12),
0 2px 10px color-mix(in srgb, var(--accent) 30%, transparent),
0 1px 3px rgba(0, 0, 0, 0.25);
transition:
background var(--transition-fast),
box-shadow var(--transition-fast),
transform var(--transition-fast);
}
.add-btn:hover {
background: var(--accent-hover);
background: linear-gradient(
to bottom,
color-mix(in srgb, var(--accent-hover) 88%, white 12%) 0%,
var(--accent-hover) 100%
);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.45),
0 4px 18px color-mix(in srgb, var(--accent) 40%, transparent);
transform: translateY(-1px);
}
.add-btn:active {
transform: translateY(0);
box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.18);
}
</style>

View file

@ -62,6 +62,11 @@ function applyAccentColor(hex: string): void {
root.style.setProperty('--accent-swipe-bg', `rgba(${r},${g},${b},${swipeAlpha})`)
}
// ─── UI Scale ────────────────────────────────────────────
function applyUiScale(scale: number): void {
window.api.invoke('app:setZoom', { factor: scale })
}
// ─── Auto-check intervals ────────────────────────────────
export const AUTO_CHECK_INTERVALS: { value: number; label: string }[] = [
{ value: 0, label: 'Выключено' },
@ -79,6 +84,7 @@ function load(): {
swipeRightAction?: SwipeAction
accentColor?: string
autoCheckInterval?: number
uiScale?: number
} {
try {
return JSON.parse(localStorage.getItem(STORAGE_KEY) ?? '{}')
@ -94,15 +100,22 @@ export const useSettingsStore = defineStore('settings', () => {
const swipeRightAction = ref<SwipeAction>(saved.swipeRightAction ?? 'toggleRead')
const accentColor = ref<string>(saved.accentColor ?? '#a8e600')
const autoCheckInterval = ref<number>(saved.autoCheckInterval ?? 5)
const uiScale = ref<number>(saved.uiScale ?? 1.0)
// Apply on init
applyAccentColor(accentColor.value)
applyUiScale(uiScale.value)
watch(accentColor, (hex) => {
applyAccentColor(hex)
persist()
})
watch(uiScale, (scale) => {
applyUiScale(scale)
persist()
})
watch([swipeLeftAction, swipeRightAction, autoCheckInterval], persist)
function persist(): void {
@ -111,8 +124,9 @@ export const useSettingsStore = defineStore('settings', () => {
swipeRightAction: swipeRightAction.value,
accentColor: accentColor.value,
autoCheckInterval: autoCheckInterval.value,
uiScale: uiScale.value,
}))
}
return { swipeLeftAction, swipeRightAction, accentColor, autoCheckInterval }
return { swipeLeftAction, swipeRightAction, accentColor, autoCheckInterval, uiScale }
})

View file

@ -59,6 +59,39 @@ const swipeOptions: { value: SwipeAction; label: string }[] = (
</div>
</section>
<!-- Масштаб интерфейса -->
<section>
<h2>Масштаб интерфейса</h2>
<p class="section-desc">Масштабирует весь интерфейс приложения</p>
<div class="scale-row">
<input
type="range"
class="scale-slider"
min="50"
max="200"
step="5"
:value="Math.round(settingsStore.uiScale * 100)"
:style="{ '--pct': ((settingsStore.uiScale * 100 - 50) / 150 * 100) + '%' }"
@input="settingsStore.uiScale = ($event.target as HTMLInputElement).valueAsNumber / 100"
/>
<div class="scale-value">
{{ Math.round(settingsStore.uiScale * 100) }}%
<button
v-if="settingsStore.uiScale !== 1"
class="scale-reset"
title="Сбросить"
@click="settingsStore.uiScale = 1"
>↺</button>
</div>
</div>
<div class="scale-ticks">
<span>50%</span>
<span>100%</span>
<span>150%</span>
<span>200%</span>
</div>
</section>
<!-- Авто-проверка почты -->
<section>
<h2>Авто-проверка почты</h2>
@ -283,6 +316,97 @@ const swipeOptions: { value: SwipeAction; label: string }[] = (
}
/* Масштаб */
.scale-row {
display: flex;
align-items: center;
gap: 14px;
}
.scale-slider {
flex: 1;
-webkit-appearance: none;
appearance: none;
height: 4px;
border-radius: var(--radius-full);
background: rgba(255, 255, 255, 0.10);
border: none;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
outline: none;
cursor: pointer;
padding: 0;
}
.scale-slider::-webkit-slider-runnable-track {
height: 4px;
border-radius: var(--radius-full);
background: linear-gradient(
to right,
var(--accent) var(--pct, 33%),
rgba(255, 255, 255, 0.10) var(--pct, 33%)
);
}
.scale-slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 18px;
height: 18px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.95);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 1),
0 2px 8px rgba(0, 0, 0, 0.45),
0 0 0 1px rgba(0, 0, 0, 0.15);
cursor: pointer;
margin-top: -7px;
transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.scale-slider::-webkit-slider-thumb:hover {
transform: scale(1.15);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 1),
0 3px 12px rgba(0, 0, 0, 0.5),
0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.scale-slider::-webkit-slider-thumb:active {
transform: scale(1.05);
}
.scale-value {
display: flex;
align-items: center;
gap: 6px;
min-width: 52px;
font-size: 13px;
font-weight: 600;
color: var(--text-primary);
font-variant-numeric: tabular-nums;
}
.scale-reset {
font-size: 14px;
color: var(--text-muted);
line-height: 1;
transition: color var(--transition-fast), transform var(--transition-fast);
}
.scale-reset:hover {
color: var(--text-secondary);
transform: rotate(-30deg);
}
.scale-ticks {
display: flex;
justify-content: space-between;
margin-top: 6px;
padding: 0 1px;
font-size: 10px;
color: var(--text-muted);
}
/* Color picker */
.color-picker-row {
display: flex;

View file

@ -29,6 +29,8 @@ export interface IpcChannelMap {
]
'oauth:gmail': [void, { email: string; accessToken: string; refreshToken: string } | null]
'app:setZoom': [{ factor: number }, void]
}
export interface IpcEventMap {