Merge feature/liquid-glass-ui: унифицированный liquid glass UI

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
d.a.kolesov 2026-04-06 12:13:50 +07:00
commit f02a1abc88
22 changed files with 577 additions and 273 deletions

View file

@ -9,7 +9,6 @@ files:
linux:
target:
- AppImage
- deb
category: Network
icon: resources/icon.png
win:

View file

@ -2,6 +2,10 @@
"name": "aero-mail",
"version": "0.1.0",
"description": "Desktop email client built with Vue 3 + Electron",
"author": {
"name": "d.a.kolesov",
"email": "d.a.kolesov@s7.ru"
},
"main": "./out/main/index.js",
"scripts": {
"dev": "electron-vite dev",

BIN
resources/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

97
resources/icon.svg Normal file
View file

@ -0,0 +1,97 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024">
<defs>
<linearGradient id="bg" x1="0" y1="0" x2="0.5" y2="1">
<stop offset="0%" stop-color="#1a1a2e"/>
<stop offset="100%" stop-color="#0d0d18"/>
</linearGradient>
<linearGradient id="envFill" x1="0.1" y1="0" x2="0.9" y2="1">
<stop offset="0%" stop-color="#2e2e50"/>
<stop offset="100%" stop-color="#1c1c32"/>
</linearGradient>
<linearGradient id="flapFill" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stop-color="#3a3a60"/>
<stop offset="100%" stop-color="#252545"/>
</linearGradient>
<linearGradient id="shine" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stop-color="#ffffff" stop-opacity="0.50"/>
<stop offset="100%" stop-color="#ffffff" stop-opacity="0.00"/>
</linearGradient>
<linearGradient id="badgeGrad" x1="0" y1="0" x2="0.5" y2="1">
<stop offset="0%" stop-color="#b8b0ff"/>
<stop offset="100%" stop-color="#7c6cf8"/>
</linearGradient>
<radialGradient id="glow" cx="50%" cy="50%" r="50%">
<stop offset="0%" stop-color="#5a52d0" stop-opacity="0.40"/>
<stop offset="100%" stop-color="#5a52d0" stop-opacity="0.00"/>
</radialGradient>
<filter id="shadow" x="-10%" y="-10%" width="120%" height="120%">
<feDropShadow dx="0" dy="12" stdDeviation="24" flood-color="#000000" flood-opacity="0.70"/>
</filter>
<filter id="badgeShadow" x="-30%" y="-30%" width="160%" height="160%">
<feDropShadow dx="0" dy="6" stdDeviation="14" flood-color="#7c6cf8" flood-opacity="0.80"/>
</filter>
<clipPath id="envClip">
<rect x="152" y="312" width="720" height="420" rx="44"/>
</clipPath>
</defs>
<!-- App background -->
<rect width="1024" height="1024" rx="216" fill="url(#bg)"/>
<!-- Ambient glow behind envelope -->
<ellipse cx="512" cy="520" rx="340" ry="220" fill="url(#glow)"/>
<!-- Envelope -->
<g filter="url(#shadow)">
<!-- Body -->
<rect x="152" y="312" width="720" height="420" rx="44"
fill="url(#envFill)"
stroke="#5a5880" stroke-width="1.5"/>
<!-- Dark bottom interior -->
<rect x="152" y="490" width="720" height="242"
fill="#0a0a16" fill-opacity="0.30"
clip-path="url(#envClip)"/>
<!-- Flap -->
<polygon points="196,312 512,534 828,312"
fill="url(#flapFill)"
clip-path="url(#envClip)"/>
<!-- Flap border / crease -->
<polyline points="196,312 512,534 828,312"
fill="none" stroke="#7070a0" stroke-width="1.5" stroke-linejoin="round"/>
<!-- Bottom corner fold lines -->
<line x1="152" y1="732" x2="376" y2="528" stroke="#4a4870" stroke-width="1.2"/>
<line x1="872" y1="732" x2="648" y2="528" stroke="#4a4870" stroke-width="1.2"/>
<!-- Top specular highlight -->
<rect x="152" y="312" width="720" height="5" rx="2"
fill="url(#shine)" clip-path="url(#envClip)"/>
<!-- Left edge shimmer -->
<rect x="152" y="312" width="3" height="420" rx="1"
fill="#ffffff" fill-opacity="0.18" clip-path="url(#envClip)"/>
<!-- Envelope border outer highlight -->
<rect x="152" y="312" width="720" height="420" rx="44"
fill="none" stroke="#ffffff" stroke-opacity="0.12" stroke-width="1"/>
</g>
<!-- Badge -->
<circle cx="728" cy="296" r="54" fill="#0d0d1a" stroke="#3a3870" stroke-width="1.5"/>
<circle cx="728" cy="296" r="36" fill="url(#badgeGrad)" filter="url(#badgeShadow)"/>
<!-- Badge shine -->
<ellipse cx="722" cy="284" rx="14" ry="9"
fill="#ffffff" fill-opacity="0.50"
transform="rotate(-22 722 284)"/>
</svg>

After

Width:  |  Height:  |  Size: 3.6 KiB

View file

@ -1,4 +1,4 @@
import { app, BrowserWindow, shell, ipcMain, dialog, Menu } from 'electron'
import { app, BrowserWindow, shell, ipcMain, dialog, Menu, globalShortcut } from 'electron'
import { join } from 'node:path'
import { AccountManager } from './services/account-manager'
import { registerAccountHandlers } from './ipc/accounts.handler'
@ -9,11 +9,16 @@ import { registerOAuthHandlers } from './ipc/oauth.handler'
const accountManager = new AccountManager()
function createWindow(): BrowserWindow {
const iconPath = app.isPackaged
? join(process.resourcesPath, 'icon.png')
: join(app.getAppPath(), 'resources/icon.png')
const mainWindow = new BrowserWindow({
width: 1280,
height: 800,
minWidth: 900,
minHeight: 600,
icon: iconPath,
backgroundColor: '#1e1e1e',
webPreferences: {
preload: join(__dirname, '../preload/index.js'),
@ -25,6 +30,10 @@ function createWindow(): BrowserWindow {
accountManager.setMainWindow(mainWindow)
globalShortcut.register('F12', () => {
mainWindow.webContents.toggleDevTools()
})
// Open external links in browser
mainWindow.webContents.setWindowOpenHandler(({ url }) => {
shell.openExternal(url)

View file

@ -112,13 +112,14 @@ textarea:focus {
.app-tooltip {
position: fixed;
z-index: 9999;
max-width: 220px;
max-width: 480px;
padding: 5px 10px;
font-size: 11.5px;
font-weight: 500;
line-height: 1.4;
color: rgba(255, 255, 255, 0.88);
white-space: nowrap;
white-space: pre-wrap;
word-break: break-all;
pointer-events: none;
/* Liquid glass: тёмный непрозрачный фон + frosted border */

View file

@ -16,6 +16,20 @@
/* ── Specular highlight (top edge of glass) ───────────── */
--glass-specular: inset 0 1px 0 rgba(255, 255, 255, 0.10);
/* ── Glass prismatic highlight (rainbow top edge) ────────── */
--glass-prismatic: 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%
);
/* ── Glass card (message / thread cards) ─────────────────── */
--glass-card-bg: rgba(12, 12, 20, 0.62);
--glass-card-blur: blur(18px) saturate(1.8);
/* ── Blur levels ──────────────────────────────────────── */
--blur-sm: blur(12px);
--blur-md: blur(24px);

View file

@ -186,11 +186,7 @@ const isFormValid = computed(() => imapHost.value && imapUsername.value && imapP
to { opacity: 1; transform: scale(1) translateY(0); }
}
/*
* Призматический верхний торец.
* Одна горизонтальная линия с радужным градиентом —
* имитация дисперсии света на краю стекла.
*/
/* Призматический верхний торец */
.dialog::before {
content: '';
position: absolute;
@ -198,14 +194,7 @@ const isFormValid = computed(() => imapHost.value && imapUsername.value && imapP
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%
);
background: rgba(255, 255, 255, 0.15);
pointer-events: none;
z-index: 10;
}

View file

@ -1,6 +1,5 @@
<script setup lang="ts">
import { ref } from 'vue'
import StatusBar from './StatusBar.vue'
import AccountSwitcher from '../sidebar/AccountSwitcher.vue'
import FolderTree from '../sidebar/FolderTree.vue'
import MessageList from '../messages/MessageList.vue'
@ -75,8 +74,6 @@ function stopResize(): void {
</div>
</div>
<StatusBar class="statusbar" />
<AddAccountDialog
v-if="showAddAccount"
@close="showAddAccount = false"
@ -104,6 +101,7 @@ function stopResize(): void {
flex-direction: column;
height: 100vh;
overflow: hidden;
background: #07070c;
}
.content-area {
@ -111,6 +109,8 @@ function stopResize(): void {
flex: 1;
overflow: hidden;
min-height: 0;
padding: 8px;
gap: 0;
}
.account-bar {
@ -118,76 +118,99 @@ function stopResize(): void {
flex-shrink: 0;
position: relative;
z-index: 4;
background: rgba(255, 255, 255, 0.04);
backdrop-filter: blur(32px) saturate(1.8);
-webkit-backdrop-filter: blur(32px) saturate(1.8);
border-right: 1px solid var(--glass-border);
box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.08);
margin-right: 8px;
border-radius: 14px;
border: 1px solid rgba(255, 255, 255, 0.09);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%),
rgba(8, 8, 13, 0.88);
backdrop-filter: blur(40px) saturate(2.0);
-webkit-backdrop-filter: blur(40px) saturate(2.0);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.12),
0 8px 32px rgba(0, 0, 0, 0.50);
}
.folder-pane {
flex-shrink: 0;
position: relative;
z-index: 3;
background: rgba(255, 255, 255, 0.035);
backdrop-filter: blur(16px) saturate(180%);
-webkit-backdrop-filter: blur(16px) saturate(180%);
overflow-y: auto;
border-radius: 14px;
border: 1px solid rgba(255, 255, 255, 0.08);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%),
rgba(9, 9, 15, 0.80);
backdrop-filter: blur(28px) saturate(1.8);
-webkit-backdrop-filter: blur(28px) saturate(1.8);
overflow: hidden;
min-width: 180px;
max-width: 400px;
border-right: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: 4px 0 20px rgba(0, 0, 0, 0.35);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.10),
0 8px 28px rgba(0, 0, 0, 0.40);
}
.message-pane {
flex-shrink: 0;
position: relative;
z-index: 2;
background: rgba(255, 255, 255, 0.025);
backdrop-filter: blur(20px) saturate(1.4);
-webkit-backdrop-filter: blur(20px) saturate(1.4);
border-radius: 14px;
border: 1px solid rgba(255, 255, 255, 0.08);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%),
rgba(10, 10, 17, 0.72);
backdrop-filter: blur(22px) saturate(1.5);
-webkit-backdrop-filter: blur(22px) saturate(1.5);
overflow: hidden;
min-width: 240px;
max-width: 600px;
border-right: 1px solid var(--glass-border);
box-shadow: 4px 0 16px rgba(0, 0, 0, 0.25);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.09),
0 8px 28px rgba(0, 0, 0, 0.38);
}
.preview-pane {
flex: 1;
position: relative;
z-index: 1;
background: rgba(255, 255, 255, 0.015);
backdrop-filter: blur(16px) saturate(1.2);
-webkit-backdrop-filter: blur(16px) saturate(1.2);
border-radius: 14px;
border: 1px solid rgba(255, 255, 255, 0.08);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%),
rgba(10, 10, 17, 0.55);
backdrop-filter: blur(18px) saturate(1.3);
-webkit-backdrop-filter: blur(18px) saturate(1.3);
overflow: hidden;
min-width: 0;
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.08),
0 8px 28px rgba(0, 0, 0, 0.32);
}
.resize-handle {
width: 1px;
width: 8px;
flex-shrink: 0;
background: transparent;
cursor: col-resize;
position: relative;
transition: background var(--transition-fast);
}
.resize-handle::after {
content: '';
position: absolute;
inset: 0 -3px;
inset: 0 -2px;
cursor: col-resize;
}
.resize-handle:hover,
.resize-handle:active {
background: color-mix(in srgb, var(--accent) 40%, transparent);
.resize-handle:hover::after,
.resize-handle:active::after {
background: color-mix(in srgb, var(--accent) 25%, transparent);
border-radius: 9999px;
width: 3px;
left: 50%;
transform: translateX(-50%);
}
.statusbar {
flex-shrink: 0;
}
.empty-state {
position: fixed;
@ -222,7 +245,6 @@ function stopResize(): void {
0 32px 80px rgba(0, 0, 0, 0.65);
}
/* Призматический торец */
.empty-content::before {
content: '';
position: absolute;
@ -230,14 +252,8 @@ function stopResize(): void {
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%
);
background: rgba(255, 255, 255, 0.18);
border-radius: 20px 20px 0 0;
pointer-events: none;
}

View file

@ -45,11 +45,12 @@ const isConnected = computed(() => {
justify-content: space-between;
height: var(--statusbar-height);
padding: 0 14px;
background: rgba(255, 255, 255, 0.03);
backdrop-filter: var(--blur-md);
-webkit-backdrop-filter: var(--blur-md);
border-top: 1px solid var(--glass-border);
box-shadow: var(--glass-specular);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.008) 100%),
rgba(9, 9, 14, 0.6);
backdrop-filter: blur(28px) saturate(1.6);
-webkit-backdrop-filter: blur(28px) saturate(1.6);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
font-size: 11px;
color: var(--text-muted);
flex-shrink: 0;

View file

@ -157,9 +157,9 @@ onMounted(restartAutoCheck)
onUnmounted(() => { if (autoCheckTimer) clearInterval(autoCheckTimer) })
// ── Pull-to-refresh ───────────────────────────────────────
const PULL_THRESHOLD = 130 // расстояние для срабатывания
const PULL_FACTOR = 0.16 // базовая чувствительность
const PULL_RUBBER = 0.55 // rubber-band: сопротивление у порога
const PULL_THRESHOLD = 220 // расстояние для срабатывания
const PULL_FACTOR = 0.14 // базовая чувствительность
const PULL_RUBBER = 0.65 // rubber-band: сопротивление у порога
const pullY = ref(0)
const pullRefreshing = ref(false)
@ -182,11 +182,15 @@ function onWheel(event: WheelEvent): void {
if (delta < 4) return // trackpad-шум
if (event.deltaY < 0 && !pullRefreshing.value && !messagesStore.loading) {
if (pullDecayTimer) { clearTimeout(pullDecayTimer); pullDecayTimer = null }
// rubber-band: чем ближе к порогу — тем тяжелее тянуть
const resistance = 1 - (pullY.value / PULL_THRESHOLD) * PULL_RUBBER
pullY.value = Math.min(PULL_THRESHOLD, pullY.value + delta * PULL_FACTOR * resistance)
if (pullY.value >= PULL_THRESHOLD) triggerPullRefresh()
if (pullY.value >= PULL_THRESHOLD) {
triggerPullRefresh()
} else {
// Запускаем таймер возврата — если пользователь отпустит трекпад, он сработает
schedulePullDecay()
}
} else if (event.deltaY > 0 && pullY.value > 0) {
schedulePullDecay()
}
@ -441,15 +445,18 @@ async function handleSwipeAction(action: SwipeAction, messageId: string): Promis
align-items: center;
justify-content: space-between;
padding: 10px 12px;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.12);
border-bottom: 1px solid rgba(255, 255, 255, 0.07);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.10),
0 1px 0 rgba(0, 0, 0, 0.22),
0 4px 14px rgba(0, 0, 0, 0.14);
flex-shrink: 0;
gap: 8px;
background:
linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%),
rgba(12, 12, 20, 0.6);
backdrop-filter: blur(20px) saturate(1.5);
-webkit-backdrop-filter: blur(20px) saturate(1.5);
linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.018) 100%),
rgba(12, 12, 20, 0.65);
backdrop-filter: blur(24px) saturate(1.6);
-webkit-backdrop-filter: blur(24px) saturate(1.6);
}
.folder-title {
@ -792,43 +799,52 @@ async function handleSwipeAction(action: SwipeAction, messageId: string): Promis
height: calc(var(--progress, 0) * 56px);
overflow: hidden;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
}
.pull-indicator-wrap.releasing {
transition: height 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.pull-indicator {
height: 56px;
display: flex;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
gap: 7px;
padding: 6px 14px 6px 10px;
font-size: 11.5px;
font-weight: 500;
/* цвет интерполируется от muted к accent по мере тяги */
color: color-mix(in srgb, var(--accent) calc(var(--pull-progress, 0) * 100%), var(--text-muted));
background:
linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.012) 100%),
rgba(10, 10, 18, 0.65);
backdrop-filter: blur(20px) saturate(1.5);
-webkit-backdrop-filter: blur(20px) saturate(1.5);
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
letter-spacing: 0.2px;
color: color-mix(in srgb, var(--accent) calc(var(--pull-progress, 0) * 100%), var(--text-muted));
background:
linear-gradient(145deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 100%),
rgba(12, 12, 20, 0.72);
backdrop-filter: blur(28px) saturate(1.8);
-webkit-backdrop-filter: blur(28px) saturate(1.8);
border: 1px solid rgba(255, 255, 255, 0.10);
border-radius: 999px;
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.14),
0 4px 16px rgba(0, 0, 0, 0.30);
transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
/* Достигнут порог — accent-подсветка */
.pull-indicator.ready {
border-bottom-color: color-mix(in srgb, var(--accent) 35%, transparent);
border-color: color-mix(in srgb, var(--accent) 35%, rgba(255,255,255,0.10));
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.09),
0 2px 16px color-mix(in srgb, var(--accent) 10%, transparent);
inset 0 1px 0 rgba(255, 255, 255, 0.16),
0 4px 20px color-mix(in srgb, var(--accent) 18%, rgba(0,0,0,0.30));
}
.pull-indicator.refreshing {
color: var(--accent);
border-bottom-color: color-mix(in srgb, var(--accent) 25%, transparent);
border-color: color-mix(in srgb, var(--accent) 30%, rgba(255,255,255,0.10));
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.16),
0 4px 20px color-mix(in srgb, var(--accent) 18%, rgba(0,0,0,0.30));
}
/* Обёртка иконки: вращение по прогрессу */
@ -874,7 +890,6 @@ async function handleSwipeAction(action: SwipeAction, messageId: string): Promis
z-index: 1;
}
/* Призматическая верхняя грань */
.thread-group--open::before {
content: '';
position: absolute;
@ -882,17 +897,7 @@ async function handleSwipeAction(action: SwipeAction, messageId: string): Promis
top: 0;
right: 0;
height: 1px;
background: linear-gradient(
90deg,
transparent 0%,
rgba(255, 120, 120, 0.55) 12%,
rgba(255, 200, 80, 0.55) 28%,
rgba(200, 255, 100, 0.55) 45%,
rgba( 80, 200, 255, 0.55) 62%,
rgba(160, 100, 255, 0.55) 78%,
rgba(255, 120, 200, 0.55) 92%,
transparent 100%
);
background: rgba(255, 255, 255, 0.12);
pointer-events: none;
z-index: 3;
}

View file

@ -295,7 +295,7 @@ onUnmounted(() => {
<div class="subject truncate" :class="{ 'font-bold': isUnread }">
{{ message.subject }}
</div>
<div class="snippet truncate">{{ message.snippet }}</div>
<div v-if="message.snippet" class="snippet truncate">{{ message.snippet }}</div>
</div>
<div class="message-indicators">
@ -311,22 +311,27 @@ onUnmounted(() => {
.swipe-wrapper {
position: relative;
overflow: hidden;
margin: 2px 5px;
margin: 3px 6px;
border-radius: 10px;
border: 1px solid rgba(255, 255, 255, 0.06);
background: var(--glass-card-bg);
backdrop-filter: var(--glass-card-blur);
-webkit-backdrop-filter: var(--glass-card-blur);
border: 1px solid rgba(255, 255, 255, 0.10);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.05),
0 1px 3px rgba(0, 0, 0, 0.15);
inset 0 1px 0 rgba(255, 255, 255, 0.10),
0 2px 8px rgba(0, 0, 0, 0.28);
transition:
box-shadow var(--transition-fast),
border-color var(--transition-fast);
border-color var(--transition-fast),
background var(--transition-fast);
}
.swipe-wrapper:hover {
border-color: rgba(255, 255, 255, 0.1);
background: rgba(16, 16, 26, 0.80);
border-color: rgba(255, 255, 255, 0.16);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.08),
0 3px 10px rgba(0, 0, 0, 0.25);
inset 0 1px 0 rgba(255, 255, 255, 0.14),
0 4px 16px rgba(0, 0, 0, 0.35);
}
/* Карточка «всплывает» когда письмо выбрано — через :has() */
@ -362,9 +367,7 @@ onUnmounted(() => {
width: 100%;
padding: 10px 10px 10px 4px;
gap: 6px;
background:
linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%),
#0c0c14;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.032) 0%, transparent 100%);
cursor: pointer;
will-change: transform;
touch-action: pan-y;
@ -372,17 +375,13 @@ onUnmounted(() => {
transition: background var(--transition-fast);
}
/* Непрочитанные — чуть ярче, больше присутствия */
/* Непрочитанные — чуть ярче */
.message-item.unread {
background:
linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.015) 100%),
#0d0d17;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.012) 100%);
}
.message-item:hover {
background:
linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.035) 100%),
#0c0c14;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
}
/* Выбранное письмо: liquid glass */
@ -474,7 +473,7 @@ onUnmounted(() => {
.message-content {
flex: 1; min-width: 0;
display: flex; flex-direction: column;
gap: 2px;
gap: 3px;
}
.message-top {
display: flex;

View file

@ -146,34 +146,35 @@ const snippet = computed(() => props.thread.latest.snippet || '')
</template>
<style scoped>
/* Внешняя карточка — glass border, margin, radius */
/* Внешняя карточка — настоящий frosted glass */
.thread-card {
position: relative;
margin: 2px 5px;
margin: 3px 6px;
border-radius: 10px;
border: 1px solid rgba(255, 255, 255, 0.06);
/* Идентично .message-item — никакого лишнего выделения */
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%),
#0c0c14;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
background: var(--glass-card-bg);
backdrop-filter: var(--glass-card-blur);
-webkit-backdrop-filter: var(--glass-card-blur);
border: 1px solid rgba(255, 255, 255, 0.10);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.10),
0 2px 8px rgba(0, 0, 0, 0.28);
overflow: hidden;
transition:
background var(--transition-fast),
border-color var(--transition-fast),
box-shadow var(--transition-fast);
}
.thread-card:hover {
border-color: rgba(255, 255, 255, 0.10);
background: rgba(16, 16, 26, 0.80);
border-color: rgba(255, 255, 255, 0.16);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.08),
0 3px 10px rgba(0, 0, 0, 0.25);
inset 0 1px 0 rgba(255, 255, 255, 0.14),
0 4px 16px rgba(0, 0, 0, 0.35);
}
.thread-card.unread {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%),
#0d0d17;
background: rgba(13, 13, 20, 0.80);
}
.thread-card.selected {
@ -207,9 +208,7 @@ const snippet = computed(() => props.thread.latest.snippet || '')
}
.thread-item:not(.selected):hover {
background:
linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.035) 100%),
#0c0c14;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
}
/* Чекбокс треда */

View file

@ -162,14 +162,16 @@ async function handleClick(att: Attachment): Promise<void> {
<style scoped>
.attachment-strip {
flex-shrink: 0;
padding: 10px 16px;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
background:
linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0.01) 100%),
rgba(10, 10, 18, 0.4);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
box-shadow: inset 0 -1px 0 rgba(0,0,0,0.15);
margin: 10px 14px 0;
padding: 12px 14px;
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.08);
background: rgba(10, 10, 16, 0.72);
backdrop-filter: blur(20px) saturate(1.5);
-webkit-backdrop-filter: blur(20px) saturate(1.5);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.08),
0 4px 16px rgba(0, 0, 0, 0.22);
}
.strip-label {

View file

@ -18,8 +18,9 @@ function rgbMatch(s: string): [number, number, number, number] | null {
return [+m[1], +m[2], +m[3], m[4] !== undefined ? parseFloat(m[4]) : 1]
}
function isNearWhiteRgb(r: number, g: number, b: number): boolean {
return r >= 200 && g >= 200 && b >= 200
// Воспринимаемая яркость (0–255)
function brightness(r: number, g: number, b: number): number {
return (r * 299 + g * 587 + b * 114) / 1000
}
function fixIframeColors(): void {
@ -28,30 +29,31 @@ function fixIframeColors(): void {
const view = iframeRef.value?.contentWindow
if (!doc?.body || !view) return
// Для каждого элемента: если getComputedStyle говорит что цвет текста
// близок к белому — ищем эффективный фон вверх по дереву.
// Если фон тоже светлый или прозрачный (дефолт белый) → делаем текст тёмным.
function effectiveBg(el: HTMLElement): [number, number, number] | null {
// Поднимаемся по дереву в поисках непрозрачного фона
function effectiveBgBrightness(el: HTMLElement): number | null {
let node: HTMLElement | null = el
while (node) {
const c = rgbMatch(view.getComputedStyle(node).backgroundColor)
if (c && c[3] > 0.05) return [c[0], c[1], c[2]]
if (c && c[3] > 0.05) return brightness(c[0], c[1], c[2])
node = node.parentElement
}
return null
return null // нет явного фона → тёмное стекло
}
const all = doc.body.querySelectorAll<HTMLElement>('*')
for (const el of all) {
const fg = rgbMatch(view.getComputedStyle(el).color)
if (!fg || fg[3] < 0.3) continue
if (!isNearWhiteRgb(fg[0], fg[1], fg[2])) continue
// Текст белый — проверяем эффективный фон
const bg = effectiveBg(el)
if (!bg || isNearWhiteRgb(bg[0], bg[1], bg[2])) {
// Белый на белом/прозрачном → тёмный текст
const fgBright = brightness(fg[0], fg[1], fg[2])
const bgBright = effectiveBgBrightness(el) ?? 10 // нет фона → тёмное (~10)
if (fgBright > 180 && bgBright > 180) {
// Светлый текст на светлом фоне → тёмный
el.style.setProperty('color', 'rgba(20, 20, 30, 0.88)', 'important')
} else if (fgBright < 140 && bgBright < 80) {
// Тёмный текст на тёмном/прозрачном фоне → светлый
el.style.setProperty('color', 'rgba(218, 218, 228, 0.88)', 'important')
}
}
} catch { /* sandbox или cross-origin */ }
@ -74,8 +76,9 @@ const processedHtml = computed(() => {
<head>
<meta charset="utf-8">
<style>
* { box-sizing: border-box; }
body {
background: #0d0d11;
background: transparent;
color: rgba(255,255,255,0.88);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-size: 14px;
@ -85,20 +88,37 @@ const processedHtml = computed(() => {
word-wrap: break-word;
overflow-wrap: break-word;
}
a { color: #a8e600; }
img { max-width: 100%; height: auto; border-radius: 6px; }
table { max-width: 100%; }
pre, code {
background: rgba(255,255,255,0.07);
padding: 2px 6px;
border-radius: 4px;
font-size: 13px;
a { color: #a8e600; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; border-radius: 8px; }
table { max-width: 100%; border-collapse: collapse; }
hr {
border: none;
border-top: 1px solid rgba(255,255,255,0.08);
margin: 16px 0;
}
pre, code {
background: rgba(255,255,255,0.06);
border: 1px solid rgba(255,255,255,0.09);
padding: 2px 7px;
border-radius: 5px;
font-size: 13px;
font-family: 'Cascadia Code', 'Fira Code', monospace;
}
pre {
padding: 12px 16px;
overflow-x: auto;
line-height: 1.5;
}
pre code { background: none; border: none; padding: 0; }
blockquote {
border-left: 3px solid rgba(255,255,255,0.12);
background: rgba(255,255,255,0.04);
border: 1px solid rgba(255,255,255,0.08);
border-left: 3px solid rgba(255,255,255,0.20);
border-radius: 0 6px 6px 0;
margin: 10px 0;
padding: 4px 14px;
color: rgba(255,255,255,0.45);
padding: 8px 14px;
color: rgba(255,255,255,0.50);
}
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
@ -129,7 +149,7 @@ const plainTextHtml = computed(() => {
<meta charset="utf-8">
<style>
body {
background: #0d0d11;
background: transparent;
color: rgba(255,255,255,0.88);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-size: 14px;
@ -139,7 +159,8 @@ const plainTextHtml = computed(() => {
white-space: pre-wrap;
word-wrap: break-word;
}
a { color: #a8e600; }
a { color: #a8e600; text-decoration: none; }
a:hover { text-decoration: underline; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
@ -246,6 +267,16 @@ onUnmounted(() => {
.message-body {
flex: 1;
overflow: hidden;
margin: 8px 14px 14px;
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.08),
0 8px 32px rgba(0, 0, 0, 0.30);
background: rgba(10, 10, 16, 0.82);
backdrop-filter: blur(20px) saturate(1.5);
-webkit-backdrop-filter: blur(20px) saturate(1.5);
position: relative;
}
.body-frame {
@ -253,6 +284,7 @@ onUnmounted(() => {
height: 100%;
border: none;
background: transparent;
display: block;
}
.no-body {
@ -261,5 +293,6 @@ onUnmounted(() => {
justify-content: center;
height: 100%;
color: var(--text-muted);
font-size: 13px;
}
</style>

View file

@ -3,11 +3,34 @@ import { computed, ref, onMounted, onUnmounted } from 'vue'
import type { MessageEnvelope, Address } from '@shared/types/message'
import { formatFullDate } from '../../utils/date'
import AppIcon from '../AppIcon.vue'
import { useMessagesStore } from '../../stores/messages.store'
import { useFoldersStore } from '../../stores/folders.store'
import { useAccountsStore } from '../../stores/accounts.store'
const props = defineProps<{
message: MessageEnvelope
}>()
const messagesStore = useMessagesStore()
const foldersStore = useFoldersStore()
const accountsStore = useAccountsStore()
const isUnread = computed(() => !props.message.flags.seen)
const isFlagged = computed(() => props.message.flags.flagged)
async function handleToggleFlag(): Promise<void> {
await messagesStore.toggleFlag(props.message.id)
}
async function handleToggleRead(): Promise<void> {
await messagesStore.toggleRead(props.message.id)
}
async function handleDelete(): Promise<void> {
if (!accountsStore.activeAccountId || !foldersStore.activeFolderId) return
await messagesStore.deleteOne(props.message.id)
}
const dateDisplay = computed(() => formatFullDate(props.message.date))
// ── Contact popup ──────────────────────────────────────────
@ -157,51 +180,86 @@ onUnmounted(() => {
</div>
</Transition>
<div class="header-badges">
<span v-if="message.flags.flagged" class="badge flagged">
<AppIcon name="flag" :size="11" /> Отмечено
</span>
<!-- Строка действий -->
<div class="action-bar">
<button
class="action-btn"
:class="{ active: isFlagged, 'flag-active': isFlagged }"
v-tooltip="isFlagged ? 'Снять флажок' : 'Поставить флажок'"
@click="handleToggleFlag"
>
<AppIcon name="flag" :size="13" />
<span>{{ isFlagged ? 'Отмечено' : 'Флажок' }}</span>
</button>
<button
class="action-btn"
:class="{ active: isUnread }"
v-tooltip="isUnread ? 'Отметить прочитанным' : 'Отметить непрочитанным'"
@click="handleToggleRead"
>
<AppIcon name="envelope" :size="13" />
<span>{{ isUnread ? 'Прочитано' : 'Непрочитано' }}</span>
</button>
<div class="action-spacer" />
<button
class="action-btn danger"
v-tooltip="'Удалить письмо'"
@click="handleDelete"
>
<AppIcon name="trash" :size="13" />
<span>Удалить</span>
</button>
</div>
</div>
</template>
<style scoped>
.message-header {
padding: 22px 26px 18px;
margin: 12px 14px 0;
padding: 18px 20px 16px;
flex-shrink: 0;
position: relative;
border-radius: 14px;
border: 1px solid rgba(255, 255, 255, 0.12);
background:
linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.012) 100%),
rgba(10, 10, 18, 0.5);
backdrop-filter: blur(28px) saturate(1.7);
-webkit-backdrop-filter: blur(28px) saturate(1.7);
border-bottom: 1px solid rgba(255, 255, 255, 0.07);
linear-gradient(145deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%),
rgba(12, 12, 20, 0.80);
backdrop-filter: blur(32px) saturate(2.0);
-webkit-backdrop-filter: blur(32px) saturate(2.0);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.09),
0 4px 20px rgba(0, 0, 0, 0.18);
inset 0 1px 0 rgba(255, 255, 255, 0.18),
0 8px 32px rgba(0, 0, 0, 0.35),
0 2px 8px rgba(0, 0, 0, 0.18);
}
.subject {
font-size: 17px;
font-weight: 600;
margin-bottom: 16px;
margin-bottom: 14px;
line-height: 1.4;
color: var(--text-primary);
overflow-wrap: anywhere;
letter-spacing: -0.01em;
user-select: text;
cursor: text;
}
.header-details {
display: flex;
flex-direction: column;
gap: 0;
background: rgba(255, 255, 255, 0.035);
border: 1px solid rgba(255, 255, 255, 0.07);
background: rgba(255, 255, 255, 0.055);
border: 1px solid rgba(255, 255, 255, 0.11);
border-radius: 10px;
overflow: hidden;
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.06),
0 2px 8px rgba(0, 0, 0, 0.12);
inset 0 1px 0 rgba(255, 255, 255, 0.10),
0 4px 16px rgba(0, 0, 0, 0.18);
}
.header-row {
@ -209,8 +267,8 @@ onUnmounted(() => {
gap: 0;
font-size: 12px;
align-items: baseline;
padding: 6px 12px;
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
padding: 7px 14px;
border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}
.header-row:last-child {
@ -219,12 +277,12 @@ onUnmounted(() => {
.label {
color: var(--text-muted);
min-width: 52px;
min-width: 56px;
flex-shrink: 0;
font-size: 10.5px;
font-weight: 500;
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
letter-spacing: 0.6px;
padding-top: 3px;
}
@ -233,6 +291,8 @@ onUnmounted(() => {
overflow-wrap: anywhere;
line-height: 1.6;
flex: 1;
user-select: text;
cursor: text;
}
/* Список адресов */
@ -375,55 +435,81 @@ onUnmounted(() => {
transform: translateY(-3px) scale(0.97);
}
/* ── Бейджи ──────────────────────────────────────────────── */
.header-badges {
/* ── Action bar ──────────────────────────────────────────── */
.action-bar {
display: flex;
align-items: center;
gap: 6px;
margin-top: 14px;
flex-wrap: wrap;
}
.badge {
.action-spacer { flex: 1; }
.action-btn {
display: inline-flex;
align-items: center;
gap: 5px;
font-size: 11px;
font-weight: 500;
padding: 4px 10px;
gap: 6px;
padding: 6px 12px;
border-radius: var(--radius-full);
background: rgba(255, 255, 255, 0.07);
font-size: 12px;
font-weight: 500;
color: var(--text-secondary);
border: 1px solid rgba(255, 255, 255, 0.11);
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.10);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.1),
0 2px 6px rgba(0, 0, 0, 0.2);
transition: background var(--transition-fast), box-shadow var(--transition-fast);
inset 0 1px 0 rgba(255, 255, 255, 0.10),
0 2px 6px rgba(0, 0, 0, 0.18);
cursor: pointer;
transition:
background var(--transition-fast),
border-color var(--transition-fast),
color var(--transition-fast),
box-shadow var(--transition-fast),
transform var(--transition-fast);
}
.badge:hover {
.action-btn:hover {
background: rgba(255, 255, 255, 0.11);
border-color: rgba(255, 255, 255, 0.18);
color: var(--text-primary);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.13),
0 3px 10px rgba(0, 0, 0, 0.25);
inset 0 1px 0 rgba(255, 255, 255, 0.14),
0 4px 12px rgba(0, 0, 0, 0.25);
}
.badge.flagged {
.action-btn:active {
transform: translateY(1px);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.action-btn.active {
background: rgba(255, 255, 255, 0.09);
border-color: rgba(255, 255, 255, 0.16);
color: var(--text-primary);
}
.action-btn.flag-active {
color: var(--warning);
background: rgba(229, 160, 0, 0.1);
border-color: rgba(229, 160, 0, 0.28);
background: rgba(240, 165, 0, 0.12);
border-color: rgba(240, 165, 0, 0.30);
box-shadow:
inset 0 1px 0 rgba(255, 200, 50, 0.12),
0 2px 8px rgba(180, 120, 0, 0.2),
0 0 14px rgba(229, 160, 0, 0.08);
inset 0 1px 0 rgba(255, 200, 60, 0.15),
0 2px 10px rgba(200, 130, 0, 0.20);
}
.badge.flagged:hover {
background: rgba(229, 160, 0, 0.16);
.action-btn.flag-active:hover {
background: rgba(240, 165, 0, 0.18);
border-color: rgba(240, 165, 0, 0.42);
}
.action-btn.danger:hover {
color: var(--danger);
background: rgba(255, 60, 60, 0.12);
border-color: rgba(255, 60, 60, 0.28);
box-shadow:
inset 0 1px 0 rgba(255, 200, 50, 0.18),
0 3px 12px rgba(180, 120, 0, 0.3),
0 0 18px rgba(229, 160, 0, 0.12);
inset 0 1px 0 rgba(255, 100, 100, 0.12),
0 4px 12px rgba(180, 30, 30, 0.22);
}
</style>

View file

@ -47,6 +47,7 @@ const selectedMessage = computed(() =>
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
}
.no-selection {
@ -57,10 +58,11 @@ const selectedMessage = computed(() =>
justify-content: center;
gap: 12px;
color: var(--text-muted);
font-size: 13px;
}
.no-selection-icon {
opacity: 0.18;
opacity: 0.15;
color: var(--text-muted);
}
@ -70,14 +72,21 @@ const selectedMessage = computed(() =>
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12px;
gap: 14px;
color: var(--text-muted);
font-size: 13px;
margin: 10px 14px 14px;
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.06);
background: rgba(10, 10, 16, 0.60);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
}
.spinner {
width: 24px;
height: 24px;
border: 2px solid var(--border);
width: 22px;
height: 22px;
border: 1.5px solid rgba(255, 255, 255, 0.10);
border-top-color: var(--accent);
border-radius: 50%;
animation: spin 0.8s linear infinite;

View file

@ -38,12 +38,12 @@ function getAccountColor(index: number): string {
</span>
</button>
<div class="spacer" />
<button class="account-btn add-btn" v-tooltip="'Добавить аккаунт'" @click="emit('addAccount')">
<AppIcon name="plus" :size="16" class="add-icon" />
</button>
<div class="spacer" />
<button class="account-btn settings-btn" v-tooltip="'Настройки'" @click="router.push('/settings')">
<AppIcon name="settings" :size="15" class="settings-icon" />
</button>
@ -56,7 +56,7 @@ function getAccountColor(index: number): string {
flex-direction: column;
align-items: center;
padding: 10px 0;
gap: 2px;
gap: 6px;
height: 100%;
}

View file

@ -34,16 +34,38 @@ const accountsStore = useAccountsStore()
<style scoped>
.folder-tree {
padding: 4px 0;
padding: 0;
display: flex;
flex-direction: column;
height: 100%;
}
.folder-header {
padding: 10px 14px 8px;
font-size: 11px;
display: flex;
align-items: center;
min-height: 48px;
padding: 0 14px;
font-size: 10.5px;
font-weight: 600;
color: var(--text-muted);
letter-spacing: 0.4px;
letter-spacing: 0.5px;
text-transform: uppercase;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%),
rgba(12, 12, 20, 0.65);
backdrop-filter: blur(24px) saturate(1.6);
-webkit-backdrop-filter: blur(24px) saturate(1.6);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.10),
0 2px 8px rgba(0, 0, 0, 0.15);
flex-shrink: 0;
}
.folder-list {
flex: 1;
overflow-y: auto;
padding: 4px 0;
}
.loading,

View file

@ -91,39 +91,36 @@ function toggleExpand(event: Event): void {
border-radius: 8px;
margin: 1px 6px;
border: 1px solid transparent;
background: transparent;
position: relative;
text-align: left;
transition:
background var(--transition-fast),
border-color var(--transition-fast);
border-color var(--transition-fast),
box-shadow var(--transition-fast);
}
.folder-item:hover {
background: rgba(255, 255, 255, 0.06);
border-color: rgba(255, 255, 255, 0.07);
background: rgba(255, 255, 255, 0.07);
border-color: rgba(255, 255, 255, 0.10);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.08),
0 2px 8px rgba(0, 0, 0, 0.20);
}
/* ── Активное состояние: liquid glass ────────────────────── */
.folder-item.active {
background: linear-gradient(
145deg,
rgba(255, 255, 255, 0.10) 0%,
rgba(255, 255, 255, 0.12) 0%,
rgba(255, 255, 255, 0.06) 100%
);
backdrop-filter: blur(14px) saturate(200%) brightness(1.08);
-webkit-backdrop-filter: blur(14px) saturate(200%) brightness(1.08);
border-color: rgba(255, 255, 255, 0.18);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
/* Specular highlight */
.folder-item.active::after {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.50);
pointer-events: none;
border-color: rgba(255, 255, 255, 0.20);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.50),
0 4px 20px rgba(0, 0, 0, 0.30);
}
/* ── Иконка папки ────────────────────────────────────────── */

View file

@ -232,14 +232,42 @@ function folderDisplayName(path: string): string {
.settings-content {
display: flex;
flex-direction: column;
gap: 36px;
gap: 28px;
max-width: 500px;
}
/* Каждая секция — glass-панель */
.settings-content section {
position: relative;
padding: 20px 22px;
border-radius: var(--radius-xl);
background:
linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%),
rgba(12, 12, 20, 0.55);
backdrop-filter: blur(20px) saturate(1.6);
-webkit-backdrop-filter: blur(20px) saturate(1.6);
border: 1px solid rgba(255, 255, 255, 0.09);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.10),
0 4px 20px rgba(0, 0, 0, 0.25);
}
.settings-content section::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: rgba(255, 255, 255, 0.12);
border-radius: var(--radius-xl) var(--radius-xl) 0 0;
pointer-events: none;
}
.settings-content h2 {
font-size: 11px;
font-size: 10.5px;
font-weight: 600;
margin-bottom: 12px;
margin-bottom: 14px;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.8px;
@ -256,13 +284,11 @@ function folderDisplayName(path: string): string {
display: flex;
align-items: center;
gap: 12px;
padding: 11px 14px;
padding: 10px 12px;
border-radius: var(--radius-md);
background: var(--glass-bg);
backdrop-filter: var(--blur-sm);
-webkit-backdrop-filter: var(--blur-sm);
border: 1px solid var(--glass-border);
box-shadow: var(--glass-specular);
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
margin-bottom: 8px;
}
@ -313,11 +339,9 @@ function folderDisplayName(path: string): string {
border-radius: var(--radius-md);
font-size: 12px;
color: var(--text-muted);
background: var(--glass-bg);
backdrop-filter: var(--blur-sm);
-webkit-backdrop-filter: var(--blur-sm);
border: 1px solid var(--glass-border);
box-shadow: var(--glass-specular);
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.swipe-arrow {
@ -329,13 +353,11 @@ function folderDisplayName(path: string): string {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 14px;
padding: 10px 12px;
border-radius: var(--radius-md);
background: var(--glass-bg);
backdrop-filter: var(--blur-sm);
-webkit-backdrop-filter: var(--blur-sm);
border: 1px solid var(--glass-border);
box-shadow: var(--glass-specular);
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
margin-bottom: 8px;
gap: 12px;
}

View file

@ -12,7 +12,7 @@ export interface IpcChannelMap {
'folders:list': [{ accountId: string }, FolderListResult]
'messages:list': [
{ accountId: string; folderId: string; offset: number; limit: number },
{ accountId: string; folderId: string; offset: number; limit: number; unseenOnly?: boolean },
MessageListResult
]
'messages:body': [