diff --git a/src/renderer/src/assets/styles/base.css b/src/renderer/src/assets/styles/base.css index 6c6500b..bd89962 100644 --- a/src/renderer/src/assets/styles/base.css +++ b/src/renderer/src/assets/styles/base.css @@ -58,19 +58,27 @@ textarea { font-family: inherit; font-size: inherit; color: var(--text-primary); - background: var(--bg-input); - border: 1px solid var(--glass-border); + background: rgba(255, 255, 255, 0.06); + border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-sm); padding: 7px 10px; outline: none; - transition: border-color var(--transition-fast), box-shadow var(--transition-fast); + backdrop-filter: blur(8px); + -webkit-backdrop-filter: blur(8px); + box-shadow: + inset 0 1px 0 rgba(255, 255, 255, 0.07), + inset 0 -1px 0 rgba(0, 0, 0, 0.1); + transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast); } input:focus, select:focus, textarea:focus { - border-color: color-mix(in srgb, var(--accent) 50%, transparent); - box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent); + background: rgba(255, 255, 255, 0.08); + border-color: color-mix(in srgb, var(--accent) 55%, transparent); + box-shadow: + inset 0 1px 0 rgba(255, 255, 255, 0.08), + 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); } /* ── Scrollbar ─────────────────────────────────────────── */ diff --git a/src/renderer/src/components/accounts/AddAccountDialog.vue b/src/renderer/src/components/accounts/AddAccountDialog.vue index 20531d1..e731323 100644 --- a/src/renderer/src/components/accounts/AddAccountDialog.vue +++ b/src/renderer/src/components/accounts/AddAccountDialog.vue @@ -175,15 +175,33 @@ const isFormValid = computed(() => imapHost.value && imapUsername.value && imapP display: flex; align-items: center; justify-content: center; - border-radius: var(--radius-sm); + border-radius: 50%; font-size: 18px; - color: var(--text-muted); 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); + transition: + background var(--transition-fast), + border-color var(--transition-fast), + color var(--transition-fast), + box-shadow var(--transition-fast); } .close-btn:hover { - background: var(--bg-hover); + background: rgba(255, 255, 255, 0.1); + border-color: rgba(255, 255, 255, 0.16); 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); +} + +.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); } .dialog-body { diff --git a/src/renderer/src/components/sidebar/AccountSwitcher.vue b/src/renderer/src/components/sidebar/AccountSwitcher.vue index 962037d..1d601e3 100644 --- a/src/renderer/src/components/sidebar/AccountSwitcher.vue +++ b/src/renderer/src/components/sidebar/AccountSwitcher.vue @@ -72,7 +72,9 @@ function getAccountColor(index: number): string { align-items: center; justify-content: center; border-radius: var(--radius-md); - transition: background var(--transition-fast); + transition: + background var(--transition-fast), + box-shadow var(--transition-fast); } .account-btn:hover { @@ -105,6 +107,36 @@ function getAccountColor(index: number): string { } +.add-btn, +.settings-btn { + border-radius: 50%; + width: 32px; + height: 32px; + 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); + transition: + background var(--transition-fast), + border-color var(--transition-fast), + box-shadow var(--transition-fast); +} + +.add-btn:hover, +.settings-btn:hover { + background: rgba(255, 255, 255, 0.1); + border-color: rgba(255, 255, 255, 0.15); + box-shadow: + inset 0 1px 0 rgba(255, 255, 255, 0.1), + 0 2px 8px rgba(0, 0, 0, 0.2); +} + +.add-btn:active, +.settings-btn:active { + background: rgba(255, 255, 255, 0.03); + box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2); + transform: scale(0.92); +} + .add-icon, .settings-icon { color: var(--text-muted); diff --git a/src/renderer/src/views/SettingsView.vue b/src/renderer/src/views/SettingsView.vue index d6412d4..620dcf4 100644 --- a/src/renderer/src/views/SettingsView.vue +++ b/src/renderer/src/views/SettingsView.vue @@ -127,18 +127,41 @@ const swipeOptions: SwipeAction[] = ['delete', 'toggleRead', 'toggleFlag', 'none } .back-btn { - padding: 6px 12px; - border-radius: var(--radius-sm); - background: var(--glass-bg-raised); - border: 1px solid var(--glass-border); + display: flex; + align-items: center; + gap: 5px; + padding: 5px 14px; + border-radius: var(--radius-full); + background: rgba(255, 255, 255, 0.06); + border: 1px solid rgba(255, 255, 255, 0.1); + box-shadow: + inset 0 1px 0 rgba(255, 255, 255, 0.09), + 0 2px 6px rgba(0, 0, 0, 0.2); + backdrop-filter: blur(12px); + -webkit-backdrop-filter: blur(12px); font-size: 12px; + font-weight: 500; 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); } .back-btn:hover { - background: var(--bg-hover); + background: rgba(255, 255, 255, 0.1); + border-color: rgba(255, 255, 255, 0.16); color: var(--text-primary); + box-shadow: + inset 0 1px 0 rgba(255, 255, 255, 0.12), + 0 3px 10px rgba(0, 0, 0, 0.25); +} + +.back-btn:active { + background: rgba(255, 255, 255, 0.04); + box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2); + transform: translateY(1px); } .settings-content { @@ -263,19 +286,34 @@ const swipeOptions: SwipeAction[] = ['delete', 'toggleRead', 'toggleFlag', 'none } .setting-select { - background: var(--bg-input); + background: rgba(255, 255, 255, 0.06); color: var(--text-primary); - border: 1px solid var(--border); - border-radius: var(--radius-sm); - padding: 5px 10px; + border: 1px solid rgba(255, 255, 255, 0.1); + border-radius: var(--radius-md); + padding: 6px 12px; font-size: 12px; cursor: pointer; min-width: 200px; + backdrop-filter: blur(12px); + -webkit-backdrop-filter: blur(12px); + box-shadow: + inset 0 1px 0 rgba(255, 255, 255, 0.08), + 0 2px 6px rgba(0, 0, 0, 0.15); + transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast); + appearance: auto; +} + +.setting-select:hover { + background: rgba(255, 255, 255, 0.09); + border-color: rgba(255, 255, 255, 0.16); } .setting-select:focus { outline: none; - border-color: var(--accent); + border-color: color-mix(in srgb, var(--accent) 55%, transparent); + box-shadow: + inset 0 1px 0 rgba(255, 255, 255, 0.09), + 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); } /* Color picker */