From bd98ddb2a0a34577332df755ce2099b6e618b099 Mon Sep 17 00:00:00 2001 From: vodyanoysh Date: Tue, 31 Mar 2026 21:46:18 +0700 Subject: [PATCH] feat: redesign bulk actions bar in liquid glass style Pill-shaped glass buttons with inset highlights and hover transitions, accent-colored count badge, glass panel background with blur+saturate. Danger button uses red-tinted glass. Cancel rendered as a muted text button. Co-Authored-By: Claude Sonnet 4.6 --- .../src/components/messages/MessageList.vue | 129 ++++++++++++++---- 1 file changed, 101 insertions(+), 28 deletions(-) diff --git a/src/renderer/src/components/messages/MessageList.vue b/src/renderer/src/components/messages/MessageList.vue index e5cf09a..ecc6fdd 100644 --- a/src/renderer/src/components/messages/MessageList.vue +++ b/src/renderer/src/components/messages/MessageList.vue @@ -99,17 +99,25 @@ async function handleSwipeAction(action: SwipeAction, messageId: string): Promis
- Выбрано: {{ messagesStore.selectedIds.size }} - - - - + + {{ messagesStore.selectedIds.size }} + выбрано + +
+ + + +
+
@@ -274,44 +282,109 @@ async function handleSwipeAction(action: SwipeAction, messageId: string): Promis .bulk-actions { display: flex; align-items: center; - gap: 6px; - padding: 6px 10px; - background: color-mix(in srgb, var(--accent) 5%, transparent); - border-bottom: 1px solid color-mix(in srgb, var(--accent) 12%, transparent); + gap: 8px; + padding: 7px 10px; + background: rgba(255, 255, 255, 0.04); + border-bottom: 1px solid var(--glass-border); + box-shadow: + inset 0 1px 0 rgba(255, 255, 255, 0.07), + 0 2px 12px rgba(0, 0, 0, 0.2); flex-shrink: 0; - backdrop-filter: var(--blur-sm); - -webkit-backdrop-filter: var(--blur-sm); + backdrop-filter: blur(20px) saturate(1.6); + -webkit-backdrop-filter: blur(20px) saturate(1.6); } .bulk-count { font-size: 11px; - color: var(--text-secondary); + color: var(--text-muted); + white-space: nowrap; + flex-shrink: 0; + display: flex; + align-items: center; + gap: 4px; +} + +.bulk-count-num { + font-size: 12px; + font-weight: 700; + color: var(--accent); + background: color-mix(in srgb, var(--accent) 12%, transparent); + border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); + border-radius: var(--radius-full); + padding: 0px 6px; + line-height: 18px; +} + +.bulk-btns { + display: flex; + align-items: center; + gap: 4px; flex: 1; } .bulk-btn { - font-size: 11px; - padding: 3px 9px; - border-radius: var(--radius-sm); - background: var(--glass-bg-hover); - border: 1px solid var(--glass-border); + display: flex; + align-items: center; + gap: 5px; + font-size: 11.5px; + font-weight: 500; + padding: 4px 10px; + border-radius: var(--radius-full); + background: rgba(255, 255, 255, 0.06); + border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-secondary); - transition: background var(--transition-fast), color var(--transition-fast); + transition: + background var(--transition-fast), + border-color var(--transition-fast), + color var(--transition-fast), + box-shadow var(--transition-fast); + white-space: nowrap; + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); } .bulk-btn:hover { - background: var(--glass-bg-active); + background: rgba(255, 255, 255, 0.1); + border-color: rgba(255, 255, 255, 0.18); color: var(--text-primary); + box-shadow: + inset 0 1px 0 rgba(255, 255, 255, 0.12), + 0 2px 8px rgba(0, 0, 0, 0.2); +} + +.bulk-btn:active { + background: rgba(255, 255, 255, 0.04); + box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2); + transform: translateY(1px); } .bulk-btn.danger { - color: rgba(255, 85, 85, 0.8); - border-color: rgba(255, 85, 85, 0.2); + color: rgba(255, 100, 100, 0.85); + background: rgba(220, 60, 60, 0.08); + border-color: rgba(220, 60, 60, 0.2); + box-shadow: inset 0 1px 0 rgba(255, 120, 120, 0.08); } .bulk-btn.danger:hover { - background: rgba(255, 85, 85, 0.12); + background: rgba(220, 60, 60, 0.15); + border-color: rgba(220, 60, 60, 0.35); color: var(--danger); + box-shadow: + inset 0 1px 0 rgba(255, 120, 120, 0.1), + 0 2px 8px rgba(180, 40, 40, 0.2); +} + +.bulk-cancel { + font-size: 11px; + color: var(--text-muted); + padding: 4px 8px; + border-radius: var(--radius-full); + flex-shrink: 0; + transition: color var(--transition-fast), background var(--transition-fast); +} + +.bulk-cancel:hover { + color: var(--text-secondary); + background: rgba(255, 255, 255, 0.05); } /* Строка "выбрать все" */