diff --git a/src/renderer/src/assets/styles/base.css b/src/renderer/src/assets/styles/base.css index 8aaa41b..de81cc9 100644 --- a/src/renderer/src/assets/styles/base.css +++ b/src/renderer/src/assets/styles/base.css @@ -14,10 +14,16 @@ body { font-size: 13px; line-height: 1.5; color: var(--text-primary); - background: var(--bg-primary); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; user-select: none; + + /* Rich gradient base — visible through glass panels */ + background: + radial-gradient(ellipse 55% 45% at 12% 10%, rgba(168, 230, 0, 0.07) 0%, transparent 70%), + radial-gradient(ellipse 45% 55% at 88% 90%, rgba(0, 110, 220, 0.06) 0%, transparent 70%), + radial-gradient(ellipse 60% 40% at 50% 50%, rgba(100, 0, 180, 0.04) 0%, transparent 100%), + #09090e; } #app { @@ -28,10 +34,7 @@ a { color: var(--accent); text-decoration: none; } - -a:hover { - color: var(--accent-hover); -} +a:hover { color: var(--accent-hover); } button { font-family: inherit; @@ -56,37 +59,29 @@ textarea { font-size: inherit; color: var(--text-primary); background: var(--bg-input); - border: 1px solid var(--border); + border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 7px 10px; outline: none; - transition: border-color var(--transition-fast); + transition: border-color var(--transition-fast), box-shadow var(--transition-fast); } input:focus, select:focus, textarea:focus { - border-color: var(--accent); - box-shadow: 0 0 0 2px var(--accent-muted); + border-color: rgba(168, 230, 0, 0.5); + box-shadow: 0 0 0 3px rgba(168, 230, 0, 0.10); } /* ── Scrollbar ─────────────────────────────────────────── */ -::-webkit-scrollbar { - width: 5px; - height: 5px; -} - -::-webkit-scrollbar-track { - background: transparent; -} - +::-webkit-scrollbar { width: 4px; height: 4px; } +::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { - background: var(--border-light); + background: rgba(255, 255, 255, 0.12); border-radius: var(--radius-full); } - ::-webkit-scrollbar-thumb:hover { - background: var(--text-muted); + background: rgba(255, 255, 255, 0.22); } /* ── Utilities ─────────────────────────────────────────── */ @@ -98,10 +93,8 @@ textarea:focus { .visually-hidden { position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; + width: 1px; height: 1px; + padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; diff --git a/src/renderer/src/assets/styles/variables.css b/src/renderer/src/assets/styles/variables.css index b5e1b65..5a381a2 100644 --- a/src/renderer/src/assets/styles/variables.css +++ b/src/renderer/src/assets/styles/variables.css @@ -1,52 +1,73 @@ :root { - /* ── Backgrounds ─────────────────────────────────────── */ - --bg-primary: #1a1a1c; - --bg-secondary: #222224; - --bg-tertiary: #2a2a2e; - --bg-hover: #36363c; - --bg-selected: #35353b; - --bg-input: #2e2e32; - --bg-elevated: #2c2c30; + /* ── Base background (shown through glass) ───────────── */ + --base-bg: #09090e; + + /* ── Glass surfaces ───────────────────────────────────── */ + --glass-bg-subtle: rgba(255, 255, 255, 0.02); + --glass-bg: rgba(255, 255, 255, 0.04); + --glass-bg-raised: rgba(255, 255, 255, 0.06); + --glass-bg-hover: rgba(255, 255, 255, 0.07); + --glass-bg-active: rgba(255, 255, 255, 0.10); + + /* ── Glass borders ────────────────────────────────────── */ + --glass-border: rgba(255, 255, 255, 0.07); + --glass-border-strong: rgba(255, 255, 255, 0.13); + + /* ── Specular highlight (top edge of glass) ───────────── */ + --glass-specular: inset 0 1px 0 rgba(255, 255, 255, 0.10); + + /* ── Blur levels ──────────────────────────────────────── */ + --blur-sm: blur(12px); + --blur-md: blur(24px); + --blur-lg: blur(40px); + --blur-xl: blur(60px); + + /* ── Convenience aliases (legacy compat) ──────────────── */ + --bg-primary: transparent; + --bg-secondary: var(--glass-bg); + --bg-tertiary: var(--glass-bg-raised); + --bg-hover: var(--glass-bg-hover); + --bg-selected: rgba(168, 230, 0, 0.10); + --bg-input: rgba(255, 255, 255, 0.07); + --bg-elevated: rgba(255, 255, 255, 0.06); + --border: var(--glass-border); + --border-light: var(--glass-border-strong); /* ── Text ────────────────────────────────────────────── */ - --text-primary: #ececec; - --text-secondary: #a0a0aa; - --text-muted: #60606a; + --text-primary: rgba(255, 255, 255, 0.92); + --text-secondary: rgba(255, 255, 255, 0.55); + --text-muted: rgba(255, 255, 255, 0.28); - /* ── Accent (lime) ───────────────────────────────────── */ + /* ── Accent ──────────────────────────────────────────── */ --accent: #a8e600; --accent-hover: #bdff1a; - --accent-muted: rgba(168, 230, 0, 0.10); + --accent-muted: rgba(168, 230, 0, 0.12); --accent-text: #0d1a00; - /* ── Borders ─────────────────────────────────────────── */ - --border: #34343a; - --border-light: #46464e; - /* ── Semantic ─────────────────────────────────────────── */ - --danger: #f44747; - --warning: #e5a000; + --danger: #ff5555; + --warning: #f0a500; --success: #4ade80; /* ── Radius ───────────────────────────────────────────── */ --radius-xs: 3px; --radius-sm: 6px; - --radius-md: 8px; - --radius-lg: 12px; - --radius-xl: 16px; + --radius-md: 10px; + --radius-lg: 14px; + --radius-xl: 18px; --radius-full: 9999px; /* ── Shadows ──────────────────────────────────────────── */ - --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4); - --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5); - --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6); - --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.75); + --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35); + --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.45); + --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55); + --shadow-xl: 0 24px 72px rgba(0, 0, 0, 0.70); /* ── Dimensions ───────────────────────────────────────── */ - --titlebar-height: 32px; - --statusbar-height: 24px; - --sidebar-width: 52px; - --folderpane-width: 240px; + --titlebar-height: 32px; + --statusbar-height: 26px; + --sidebar-width: 56px; + --folderpane-width: 240px; /* ── Typography ───────────────────────────────────────── */ --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, Cantarell, sans-serif; diff --git a/src/renderer/src/components/accounts/AddAccountDialog.vue b/src/renderer/src/components/accounts/AddAccountDialog.vue index 217a54b..20531d1 100644 --- a/src/renderer/src/components/accounts/AddAccountDialog.vue +++ b/src/renderer/src/components/accounts/AddAccountDialog.vue @@ -131,8 +131,9 @@ const isFormValid = computed(() => imapHost.value && imapUsername.value && imapP .dialog-overlay { position: fixed; inset: 0; - background: rgba(0, 0, 0, 0.65); - backdrop-filter: blur(4px); + background: rgba(0, 0, 0, 0.5); + backdrop-filter: var(--blur-md); + -webkit-backdrop-filter: var(--blur-md); display: flex; align-items: center; justify-content: center; @@ -140,20 +141,25 @@ const isFormValid = computed(() => imapHost.value && imapUsername.value && imapP } .dialog { - background: var(--bg-elevated); - border: 1px solid var(--border-light); + 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; - box-shadow: var(--shadow-xl); + box-shadow: + var(--glass-specular), + var(--shadow-xl), + 0 0 0 0.5px rgba(255, 255, 255, 0.04) inset; } .dialog-header { display: flex; align-items: center; padding: 18px 22px; - border-bottom: 1px solid var(--border); + border-bottom: 1px solid var(--glass-border); gap: 12px; } diff --git a/src/renderer/src/components/layout/AppShell.vue b/src/renderer/src/components/layout/AppShell.vue index dc7fbb0..d128109 100644 --- a/src/renderer/src/components/layout/AppShell.vue +++ b/src/renderer/src/components/layout/AppShell.vue @@ -113,29 +113,39 @@ function stopResize(): void { .account-bar { width: var(--sidebar-width); flex-shrink: 0; - background: var(--bg-primary); - border-right: 1px solid var(--border); + background: rgba(255, 255, 255, 0.025); + backdrop-filter: var(--blur-md); + -webkit-backdrop-filter: var(--blur-md); + border-right: 1px solid var(--glass-border); } .folder-pane { flex-shrink: 0; - background: var(--bg-secondary); + background: rgba(255, 255, 255, 0.03); + backdrop-filter: var(--blur-md); + -webkit-backdrop-filter: var(--blur-md); overflow-y: auto; min-width: 180px; max-width: 400px; + border-right: 1px solid var(--glass-border); } .message-pane { flex-shrink: 0; - background: var(--bg-secondary); + background: rgba(255, 255, 255, 0.025); + backdrop-filter: var(--blur-sm); + -webkit-backdrop-filter: var(--blur-sm); overflow: hidden; min-width: 240px; max-width: 600px; + border-right: 1px solid var(--glass-border); } .preview-pane { flex: 1; - background: var(--bg-primary); + background: rgba(255, 255, 255, 0.015); + backdrop-filter: var(--blur-sm); + -webkit-backdrop-filter: var(--blur-sm); overflow: hidden; min-width: 0; } @@ -143,13 +153,12 @@ function stopResize(): void { .resize-handle { width: 1px; flex-shrink: 0; - background: var(--border); + background: transparent; cursor: col-resize; position: relative; transition: background var(--transition-fast); } -/* wider invisible grab zone */ .resize-handle::after { content: ''; position: absolute; @@ -159,7 +168,7 @@ function stopResize(): void { .resize-handle:hover, .resize-handle:active { - background: var(--accent); + background: rgba(168, 230, 0, 0.4); } .statusbar { @@ -172,12 +181,19 @@ function stopResize(): void { display: flex; align-items: center; justify-content: center; - background: var(--bg-primary); + background: transparent; z-index: 10; } .empty-content { 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); } .empty-icon { diff --git a/src/renderer/src/components/layout/StatusBar.vue b/src/renderer/src/components/layout/StatusBar.vue index 4e7c4b1..77e075f 100644 --- a/src/renderer/src/components/layout/StatusBar.vue +++ b/src/renderer/src/components/layout/StatusBar.vue @@ -45,8 +45,11 @@ const isConnected = computed(() => { justify-content: space-between; height: var(--statusbar-height); padding: 0 14px; - background: var(--bg-tertiary); - border-top: 1px solid var(--border); + 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); font-size: 11px; color: var(--text-muted); flex-shrink: 0; diff --git a/src/renderer/src/components/messages/MessageList.vue b/src/renderer/src/components/messages/MessageList.vue index b97a72e..af683cf 100644 --- a/src/renderer/src/components/messages/MessageList.vue +++ b/src/renderer/src/components/messages/MessageList.vue @@ -179,9 +179,12 @@ async function handleSwipeAction(action: SwipeAction, messageId: string): Promis align-items: center; justify-content: space-between; padding: 10px 12px; - border-bottom: 1px solid var(--border); + border-bottom: 1px solid var(--glass-border); flex-shrink: 0; gap: 8px; + background: rgba(255, 255, 255, 0.02); + backdrop-filter: var(--blur-sm); + -webkit-backdrop-filter: var(--blur-sm); } .folder-title { @@ -231,13 +234,13 @@ async function handleSwipeAction(action: SwipeAction, messageId: string): Promis } .icon-btn:hover:not(:disabled) { - background: var(--bg-hover); + background: var(--glass-bg-hover); color: var(--text-primary); } .icon-btn.active { color: var(--accent); - background: var(--accent-muted); + background: rgba(168, 230, 0, 0.12); } .icon-btn:disabled { @@ -272,9 +275,11 @@ async function handleSwipeAction(action: SwipeAction, messageId: string): Promis align-items: center; gap: 6px; padding: 6px 10px; - background: var(--bg-tertiary); - border-bottom: 1px solid var(--border); + background: rgba(168, 230, 0, 0.05); + border-bottom: 1px solid rgba(168, 230, 0, 0.12); flex-shrink: 0; + backdrop-filter: var(--blur-sm); + -webkit-backdrop-filter: var(--blur-sm); } .bulk-count { @@ -285,23 +290,27 @@ async function handleSwipeAction(action: SwipeAction, messageId: string): Promis .bulk-btn { font-size: 11px; - padding: 3px 8px; + padding: 3px 9px; border-radius: var(--radius-sm); - background: var(--bg-hover); - color: var(--text-primary); - transition: background var(--transition-fast); + background: var(--glass-bg-hover); + border: 1px solid var(--glass-border); + color: var(--text-secondary); + transition: background var(--transition-fast), color var(--transition-fast); } .bulk-btn:hover { - background: var(--border-light); + background: var(--glass-bg-active); + color: var(--text-primary); } .bulk-btn.danger { - color: var(--danger); + color: rgba(255, 85, 85, 0.8); + border-color: rgba(255, 85, 85, 0.2); } .bulk-btn.danger:hover { - background: rgba(244, 71, 71, 0.15); + background: rgba(255, 85, 85, 0.12); + color: var(--danger); } /* Строка "выбрать все" */ @@ -310,13 +319,13 @@ async function handleSwipeAction(action: SwipeAction, messageId: string): Promis align-items: center; gap: 10px; padding: 6px 10px 6px 5px; - border-bottom: 1px solid var(--border); - background: var(--bg-tertiary); + border-bottom: 1px solid var(--glass-border); + background: rgba(255, 255, 255, 0.02); cursor: pointer; transition: background var(--transition-fast); } .select-all-row:hover { - background: var(--bg-hover); + background: var(--glass-bg-hover); } .select-all-circle { diff --git a/src/renderer/src/components/messages/MessageListItem.vue b/src/renderer/src/components/messages/MessageListItem.vue index 3ac4a15..4884856 100644 --- a/src/renderer/src/components/messages/MessageListItem.vue +++ b/src/renderer/src/components/messages/MessageListItem.vue @@ -304,7 +304,7 @@ onUnmounted(() => { .swipe-wrapper { position: relative; overflow: hidden; - border-bottom: 1px solid var(--border); + border-bottom: 1px solid var(--glass-border); } .action-bg { @@ -326,24 +326,26 @@ onUnmounted(() => { width: 100%; padding: 10px 10px 10px 4px; gap: 6px; - background: var(--bg-secondary); + background: transparent; cursor: pointer; will-change: transform; touch-action: pan-y; user-select: none; - transition: background 0.1s ease; + transition: background var(--transition-fast); } -.message-item:hover { background: var(--bg-hover); } +.message-item:hover { background: var(--glass-bg-hover); } .message-item.selected { - background: var(--bg-selected); + background: rgba(168, 230, 0, 0.08); border-left: 2px solid var(--accent); padding-left: 2px; + box-shadow: inset 0 1px 0 rgba(168, 230, 0, 0.10), + inset 0 -1px 0 rgba(168, 230, 0, 0.05); } .message-item.checked { - background: color-mix(in srgb, var(--accent) 12%, var(--bg-secondary)); + background: rgba(168, 230, 0, 0.06); } .message-item.checked:hover { - background: color-mix(in srgb, var(--accent) 18%, var(--bg-secondary)); + background: rgba(168, 230, 0, 0.10); } /* Left column: holds either circle-check or unread-dot */ diff --git a/src/renderer/src/components/preview/MessageBody.vue b/src/renderer/src/components/preview/MessageBody.vue index 8c1c83d..ab447e4 100644 --- a/src/renderer/src/components/preview/MessageBody.vue +++ b/src/renderer/src/components/preview/MessageBody.vue @@ -28,25 +28,30 @@ const processedHtml = computed(() => { @@ -68,12 +73,12 @@ const plainTextHtml = computed(() => {