fix(ui): refine settings and surface styling

This commit is contained in:
NimBold
2026-07-27 08:37:49 +03:30
parent d5c3fc8b27
commit 61dfcf5d8a
9 changed files with 142 additions and 35 deletions
+1 -1
View File
@@ -1056,7 +1056,7 @@ function App() {
/> />
)} )}
<div <div
className={`app-sidebar-shell relative z-20 shrink-0 transition-all duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)] ${ className={`app-sidebar-shell relative z-20 shrink-0 transition-[width,margin-inline-start,margin-inline-end,opacity] duration-300 ease-[cubic-bezier(0.2,0.8,0.2,1)] ${
isSidebarOnRight ? 'app-sidebar-shell--right' : 'app-sidebar-shell--left' isSidebarOnRight ? 'app-sidebar-shell--right' : 'app-sidebar-shell--left'
} ${ } ${
isSidebarVisible ? 'opacity-100' : 'opacity-0 pointer-events-none' isSidebarVisible ? 'opacity-100' : 'opacity-0 pointer-events-none'
+1 -1
View File
@@ -279,7 +279,7 @@ export const DownloadItem = React.memo<DownloadItemProps>(({
> >
{(download.status === 'queued' || download.status === 'staged') && queueIndex !== -1 ? ( {(download.status === 'queued' || download.status === 'staged') && queueIndex !== -1 ? (
<> <>
<Clock size={12} className={download.status === 'queued' ? 'animate-pulse shrink-0' : 'shrink-0'} /> <Clock size={12} className={download.status === 'queued' ? 'animate-pulse motion-reduce:animate-none shrink-0' : 'shrink-0'} />
<span className="truncate"> <span className="truncate">
{downloadStatusLabel} #{queueIndex + 1} {downloadStatusLabel} #{queueIndex + 1}
</span> </span>
+14 -6
View File
@@ -2307,13 +2307,17 @@ export const DownloadTable: React.FC<DownloadTableProps> = ({ filter, onSummaryC
{itemsToQueue.length > 0 && ( {itemsToQueue.length > 0 && (
<div className="group relative"> <div className="group relative">
<button className="w-full text-left px-3 py-2 hover:bg-item-hover transition-colors flex justify-between items-center"> <button
type="button"
aria-haspopup="menu"
className="w-full text-left px-3 py-2 hover:bg-item-hover transition-colors flex justify-between items-center"
>
{t($ => $.downloadTable.addToQueue)} {t($ => $.downloadTable.addToQueue)}
<ChevronRight size={14} className="download-context-menu-chevron" /> <ChevronRight size={14} className="download-context-menu-chevron" />
</button> </button>
<div className="download-context-submenu absolute top-0 hidden group-hover:block min-w-[150px] bg-bg-modal border border-border-modal rounded-lg shadow-lg py-1.5 z-50"> <div className="download-context-submenu absolute top-0 min-w-[150px] bg-bg-modal border border-border-modal rounded-lg shadow-lg py-1.5 z-50" role="menu">
{queues.map(q => ( {queues.map(q => (
<button key={q.id} onClick={() => { <button key={q.id} role="menuitem" onClick={() => {
setContextMenu(null); setContextMenu(null);
void assignToQueue(itemsToQueue.map(item => item.id), q.id).catch(error => { void assignToQueue(itemsToQueue.map(item => item.id), q.id).catch(error => {
showInteractionError(t($ => $.downloadTable.moveManyFailed), error); showInteractionError(t($ => $.downloadTable.moveManyFailed), error);
@@ -2426,13 +2430,17 @@ export const DownloadTable: React.FC<DownloadTableProps> = ({ filter, onSummaryC
{contextItem.status !== 'completed' && ( {contextItem.status !== 'completed' && (
<div className="group relative"> <div className="group relative">
<button className="w-full text-left px-3 py-2 hover:bg-item-hover transition-colors flex justify-between items-center"> <button
type="button"
aria-haspopup="menu"
className="w-full text-left px-3 py-2 hover:bg-item-hover transition-colors flex justify-between items-center"
>
{t($ => $.downloadTable.addToQueue)} {t($ => $.downloadTable.addToQueue)}
<ChevronRight size={14} className="download-context-menu-chevron" /> <ChevronRight size={14} className="download-context-menu-chevron" />
</button> </button>
<div className="download-context-submenu absolute top-0 hidden group-hover:block min-w-[150px] bg-bg-modal border border-border-modal rounded-lg shadow-lg py-1.5 z-50"> <div className="download-context-submenu absolute top-0 min-w-[150px] bg-bg-modal border border-border-modal rounded-lg shadow-lg py-1.5 z-50" role="menu">
{queues.map(q => ( {queues.map(q => (
<button key={q.id} onClick={() => { <button key={q.id} role="menuitem" onClick={() => {
setContextMenu(null); setContextMenu(null);
void assignToQueue([contextItem.id], q.id).catch(error => { void assignToQueue([contextItem.id], q.id).catch(error => {
showInteractionError(t($ => $.downloadTable.moveOneFailed), error); showInteractionError(t($ => $.downloadTable.moveOneFailed), error);
+1 -1
View File
@@ -207,7 +207,7 @@ export const KeychainPermissionModal: React.FC<KeychainPermissionModalProps> = (
<button <button
onClick={handleGrant} onClick={handleGrant}
disabled={isGranting || grantRequestPending} disabled={isGranting || grantRequestPending}
className="px-4 py-2 rounded-lg text-sm font-medium transition-colors bg-accent text-white hover:bg-accent/90 disabled:opacity-50" className="px-4 py-2 rounded-lg text-sm font-medium transition-colors bg-accent text-accent-foreground hover:bg-accent/90 disabled:opacity-50"
> >
{isGranting || grantRequestPending ? t($ => $.keychain.enabling) : grantLabel} {isGranting || grantRequestPending ? t($ => $.keychain.enabling) : grantLabel}
</button> </button>
+1 -1
View File
@@ -342,7 +342,7 @@ export default function SchedulerView() {
disabled={!draft.enabled} disabled={!draft.enabled}
onClick={() => toggleDay(day.value)} onClick={() => toggleDay(day.value)}
className={`h-8 w-8 rounded-full text-[12px] font-semibold ${ className={`h-8 w-8 rounded-full text-[12px] font-semibold ${
selected ? 'bg-accent text-white' : 'bg-bg-input text-text-primary hover:bg-item-hover' selected ? 'bg-accent text-accent-foreground' : 'bg-bg-input text-text-primary hover:bg-item-hover'
}`} }`}
> >
{t($ => $.scheduler.days[day.key])} {t($ => $.scheduler.days[day.key])}
+9 -6
View File
@@ -725,10 +725,11 @@ runEngineChecks(false);
<button <button
type="button" type="button"
data-active={active} data-active={active}
aria-current={active ? 'page' : undefined}
onClick={() => settings.setActiveSettingsTab(type)} onClick={() => settings.setActiveSettingsTab(type)}
className={`settings-tab-button flex min-w-0 flex-1 flex-col items-center justify-center px-1 text-center cursor-default ${ className={`settings-tab-button flex min-w-0 flex-1 flex-col items-center justify-center px-1 text-center cursor-pointer ${
active active
? 'text-white' ? 'text-accent-foreground'
: 'text-text-primary hover:bg-item-hover' : 'text-text-primary hover:bg-item-hover'
}`} }`}
> >
@@ -755,6 +756,7 @@ runEngineChecks(false);
{/* Content Area */} {/* Content Area */}
<div className="settings-scroll flex-1 overflow-y-auto"> <div className="settings-scroll flex-1 overflow-y-auto">
<div className="settings-content-shell w-full"> <div className="settings-content-shell w-full">
<div key={activeTab} className="settings-page-transition">
<h1 className="settings-title text-text-primary">{activeTabLabel}</h1> <h1 className="settings-title text-text-primary">{activeTabLabel}</h1>
<div className="settings-content max-w-[720px]"> <div className="settings-content max-w-[720px]">
@@ -1448,7 +1450,7 @@ runEngineChecks(false);
type="button" type="button"
onClick={handleAddLogin} onClick={handleAddLogin}
disabled={isSavingLogin} disabled={isSavingLogin}
className="bg-accent hover:bg-accent text-white px-4 py-1.5 rounded-lg text-xs font-semibold shadow flex items-center gap-1.5" className="bg-accent hover:bg-accent text-accent-foreground px-4 py-1.5 rounded-lg text-xs font-semibold shadow flex items-center gap-1.5"
> >
<Plus size={14} /> {isSavingLogin ? t($ => $.settings.siteLogins.saving) : t($ => $.settings.siteLogins.addLogin)} <Plus size={14} /> {isSavingLogin ? t($ => $.settings.siteLogins.saving) : t($ => $.settings.siteLogins.addLogin)}
</button> </button>
@@ -1611,7 +1613,7 @@ className="app-button px-3 py-1.5 text-[12px] flex items-center gap-1.5 disabled
</p> </p>
<button <button
onClick={() => settings.setShowKeychainModal(true)} onClick={() => settings.setShowKeychainModal(true)}
className="px-4 py-1.5 rounded-md text-xs font-medium transition-colors bg-accent text-white hover:bg-accent/90 shadow-sm" className="px-4 py-1.5 rounded-md text-xs font-medium transition-colors bg-accent text-accent-foreground hover:bg-accent/90 shadow-sm"
> >
{platform.portable ? t($ => $.settings.integrations.reviewPortablePairing) : t($ => $.settings.integrations.grantCredentialAccess)} {platform.portable ? t($ => $.settings.integrations.reviewPortablePairing) : t($ => $.settings.integrations.grantCredentialAccess)}
</button> </button>
@@ -1635,7 +1637,7 @@ className="app-button px-3 py-1.5 text-[12px] flex items-center gap-1.5 disabled
<div className="space-y-2"> <div className="space-y-2">
<button <button
onClick={() => void copyToken()} onClick={() => void copyToken()}
className="w-full bg-accent hover:bg-accent text-white font-medium py-1 px-2 rounded text-[11px] flex items-center justify-center gap-1 shadow transition-colors" className="w-full bg-accent hover:bg-accent text-accent-foreground font-medium py-1 px-2 rounded text-[11px] flex items-center justify-center gap-1 shadow transition-colors"
> >
<Copy size={11} /> {t($ => $.settings.integrations.copyToken)} <Copy size={11} /> {t($ => $.settings.integrations.copyToken)}
</button> </button>
@@ -1798,7 +1800,7 @@ className="app-button px-3 py-1.5 text-[12px] flex items-center gap-1.5 disabled
role="switch" role="switch"
aria-checked={settings.autoCheckUpdates} aria-checked={settings.autoCheckUpdates}
onClick={() => settings.setAutoCheckUpdates(!settings.autoCheckUpdates)} onClick={() => settings.setAutoCheckUpdates(!settings.autoCheckUpdates)}
className={`relative inline-flex h-5 w-9 shrink-0 cursor-default items-center rounded-full transition-colors duration-200 ease-in-out border border-transparent ${settings.autoCheckUpdates ? 'bg-accent' : 'bg-border-color'}`} className={`relative inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full transition-colors duration-200 ease-in-out border border-transparent ${settings.autoCheckUpdates ? 'bg-accent' : 'bg-border-color'}`}
> >
<span className={`pointer-events-none inline-block h-4 w-4 transform rounded-full bg-white shadow transition duration-200 ease-in-out ${settings.autoCheckUpdates ? 'translate-x-4' : 'translate-x-0'}`} /> <span className={`pointer-events-none inline-block h-4 w-4 transform rounded-full bg-white shadow transition duration-200 ease-in-out ${settings.autoCheckUpdates ? 'translate-x-4' : 'translate-x-0'}`} />
</button> </button>
@@ -1829,6 +1831,7 @@ className="app-button px-3 py-1.5 text-[12px] flex items-center gap-1.5 disabled
)} )}
</div> </div>
</div>
</div> </div>
</div> </div>
+1 -1
View File
@@ -426,7 +426,7 @@ export const Sidebar: React.FC<SidebarProps> = (props) => {
onClick={() => setActiveView('settings')} onClick={() => setActiveView('settings')}
className="sidebar-nav-item sidebar-settings-button group flex w-full items-center text-[13px] text-start cursor-default font-medium transition-colors" className="sidebar-nav-item sidebar-settings-button group flex w-full items-center text-[13px] text-start cursor-default font-medium transition-colors"
> >
<Settings className={`w-[18px] h-[18px] me-3 shrink-0 ${activeView === 'settings' ? 'text-white' : 'text-text-muted'}`} strokeWidth={activeView === 'settings' ? 2.5 : 2} /> <Settings className={`w-[18px] h-[18px] me-3 shrink-0 ${activeView === 'settings' ? 'text-accent-foreground' : 'text-text-muted'}`} strokeWidth={activeView === 'settings' ? 2.5 : 2} />
<span className="sidebar-nav-label">{t($ => $.navigation.settings)}</span> <span className="sidebar-nav-label">{t($ => $.navigation.settings)}</span>
</button> </button>
</div> </div>
+1 -1
View File
@@ -250,7 +250,7 @@ export default function SpeedLimiterView() {
disabled={!enabled || isSaving} disabled={!enabled || isSaving}
onClick={() => changeUnit(option)} onClick={() => changeUnit(option)}
className={`rounded px-3 py-1.5 text-[12px] font-medium ${ className={`rounded px-3 py-1.5 text-[12px] font-medium ${
unit === option ? 'bg-accent text-white' : 'text-text-secondary hover:bg-item-hover' unit === option ? 'bg-accent text-accent-foreground' : 'text-text-secondary hover:bg-item-hover'
}`} }`}
> >
{option} {option}
+113 -17
View File
@@ -11,11 +11,13 @@
--item-hover: 0 0% 0% / 0.05; --item-hover: 0 0% 0% / 0.05;
--item-selected: 211 100% 50%; --item-selected: 211 100% 50%;
--accent-color: 211 100% 50%; --accent-color: 211 100% 50%;
--accent-foreground: 220 20% 8%;
--stripe-bg: 0 0% 0% / 0.035; --stripe-bg: 0 0% 0% / 0.035;
--text-primary: 0 0% 10%; --text-primary: 0 0% 10%;
--text-secondary: 0 0% 40%; /* Supporting text stays readable on light surfaces while retaining a cool neutral hierarchy. */
--text-muted: 0 0% 55%; --text-secondary: 220 12% 34%;
--text-muted: 220 10% 44%;
--bg-modal: 0 0% 100%; --bg-modal: 0 0% 100%;
--bg-input: 0 0% 100%; --bg-input: 0 0% 100%;
--border-modal: 0 0% 85%; --border-modal: 0 0% 85%;
@@ -54,10 +56,12 @@
--item-hover: 0 0% 0% / 0.05; --item-hover: 0 0% 0% / 0.05;
--item-selected: 211 100% 50%; --item-selected: 211 100% 50%;
--accent-color: 211 100% 50%; --accent-color: 211 100% 50%;
--accent-foreground: 220 20% 8%;
--stripe-bg: 0 0% 0% / 0.035; --stripe-bg: 0 0% 0% / 0.035;
--text-primary: 0 0% 10%; --text-primary: 0 0% 10%;
--text-secondary: 0 0% 40%; /* Supporting text stays readable on light surfaces while retaining a cool neutral hierarchy. */
--text-muted: 0 0% 55%; --text-secondary: 220 12% 34%;
--text-muted: 220 10% 44%;
--bg-modal: 0 0% 100%; --bg-modal: 0 0% 100%;
--bg-input: 0 0% 100%; --bg-input: 0 0% 100%;
--border-modal: 0 0% 85%; --border-modal: 0 0% 85%;
@@ -84,10 +88,11 @@
--item-hover: 0 0% 100% / 0.07; --item-hover: 0 0% 100% / 0.07;
--item-selected: 211 100% 56%; --item-selected: 211 100% 56%;
--accent-color: 211 100% 56%; --accent-color: 211 100% 56%;
--accent-foreground: 220 20% 12%;
--stripe-bg: 0 0% 100% / 0.025; --stripe-bg: 0 0% 100% / 0.025;
--text-primary: 0 0% 91%; --text-primary: 0 0% 91%;
--text-secondary: 0 0% 75%; --text-secondary: 0 0% 75%;
--text-muted: 0 0% 50%; --text-muted: 0 0% 60%;
--bg-modal: 0 0% 13%; --bg-modal: 0 0% 13%;
--bg-input: 0 0% 16%; --bg-input: 0 0% 16%;
--shadow-color: 0 0% 0% / 0.30; --shadow-color: 0 0% 0% / 0.30;
@@ -128,10 +133,11 @@
--item-hover: 326 100% 74% / 0.10; --item-hover: 326 100% 74% / 0.10;
--item-selected: 326 100% 74%; --item-selected: 326 100% 74%;
--accent-color: 326 100% 74%; --accent-color: 326 100% 74%;
--accent-foreground: 220 20% 12%;
--stripe-bg: 0 0% 100% / 0.025; --stripe-bg: 0 0% 100% / 0.025;
--text-primary: 60 30% 96%; --text-primary: 60 30% 96%;
--text-secondary: 228 14% 74%; --text-secondary: 228 14% 74%;
--text-muted: 229 12% 58%; --text-muted: 229 12% 66%;
--bg-modal: 232 14% 23%; --bg-modal: 232 14% 23%;
--bg-input: 231 15% 20%; --bg-input: 231 15% 20%;
--shadow-color: 231 20% 8% / 0.35; --shadow-color: 231 20% 8% / 0.35;
@@ -172,10 +178,11 @@
--item-hover: 193 43% 67% / 0.12; --item-hover: 193 43% 67% / 0.12;
--item-selected: 193 43% 67%; --item-selected: 193 43% 67%;
--accent-color: 193 43% 67%; --accent-color: 193 43% 67%;
--accent-foreground: 220 20% 12%;
--stripe-bg: 0 0% 100% / 0.025; --stripe-bg: 0 0% 100% / 0.025;
--text-primary: 218 27% 92%; --text-primary: 218 27% 92%;
--text-secondary: 219 28% 80%; --text-secondary: 219 28% 80%;
--text-muted: 218 17% 63%; --text-muted: 218 17% 70%;
--bg-modal: 220 17% 27%; --bg-modal: 220 17% 27%;
--bg-input: 220 16% 24%; --bg-input: 220 16% 24%;
--shadow-color: 220 25% 10% / 0.34; --shadow-color: 220 25% 10% / 0.34;
@@ -209,6 +216,7 @@
--color-sidebar-glass: hsl(var(--sidebar-glass)); --color-sidebar-glass: hsl(var(--sidebar-glass));
--color-main-bg: hsl(var(--main-bg)); --color-main-bg: hsl(var(--main-bg));
--color-accent: hsl(var(--accent-color)); --color-accent: hsl(var(--accent-color));
--color-accent-foreground: hsl(var(--accent-foreground));
--color-border-color: hsl(var(--border-color)); --color-border-color: hsl(var(--border-color));
--color-item-hover: hsl(var(--item-hover)); --color-item-hover: hsl(var(--item-hover));
--color-item-selected: hsl(var(--item-selected)); --color-item-selected: hsl(var(--item-selected));
@@ -526,7 +534,7 @@ html[data-list-density="relaxed"] {
.app-button-primary { .app-button-primary {
border-color: transparent; border-color: transparent;
background: var(--color-accent); background: var(--color-accent);
color: white; color: var(--color-accent-foreground);
} }
.app-button-primary:hover:not(:disabled) { .app-button-primary:hover:not(:disabled) {
@@ -1083,7 +1091,7 @@ html[data-list-density="relaxed"] {
background: background:
linear-gradient(180deg, hsl(0 0% 100% / 0.16), transparent 52%), linear-gradient(180deg, hsl(0 0% 100% / 0.16), transparent 52%),
hsl(var(--accent-color)); hsl(var(--accent-color));
color: white; color: hsl(var(--accent-foreground));
box-shadow: box-shadow:
inset 0 1px 0 hsl(0 0% 100% / 0.18), inset 0 1px 0 hsl(0 0% 100% / 0.18),
0 1px 2px hsl(var(--accent-color) / 0.32); 0 1px 2px hsl(var(--accent-color) / 0.32);
@@ -1413,19 +1421,19 @@ html[data-list-density="relaxed"] {
.sidebar-nav-item[data-active="true"] { .sidebar-nav-item[data-active="true"] {
background: hsl(var(--accent-color)) !important; background: hsl(var(--accent-color)) !important;
color: white !important; color: hsl(var(--accent-foreground)) !important;
box-shadow: box-shadow:
inset 0 1px 0 hsl(0 0% 100% / 0.12), inset 0 1px 0 hsl(0 0% 100% / 0.12),
0 1px 0 hsl(0 0% 0% / 0.10); 0 1px 0 hsl(0 0% 0% / 0.10);
} }
.sidebar-nav-item[data-active="true"] svg { .sidebar-nav-item[data-active="true"] svg {
color: white !important; color: hsl(var(--accent-foreground)) !important;
} }
.sidebar-nav-item[data-active="true"] .sidebar-count { .sidebar-nav-item[data-active="true"] .sidebar-count {
color: white !important; color: hsl(var(--accent-foreground)) !important;
background: hsl(0 0% 100% / 0.16) !important; background: hsl(var(--accent-foreground) / 0.16) !important;
} }
.sidebar-nav-item:not([data-active="true"]):hover { .sidebar-nav-item:not([data-active="true"]):hover {
@@ -1468,6 +1476,9 @@ html[data-list-density="relaxed"] {
padding: 7px 10px; padding: 7px 10px;
border-top: 1px solid hsl(var(--sidebar-border)); border-top: 1px solid hsl(var(--sidebar-border));
background: hsl(var(--sidebar-hover)); background: hsl(var(--sidebar-hover));
border-bottom-right-radius: calc(var(--window-corner-radius) - 1px);
border-bottom-left-radius: calc(var(--window-corner-radius) - 1px);
overflow: hidden;
} }
.sidebar-settings-button { .sidebar-settings-button {
@@ -1607,13 +1618,26 @@ html[data-list-density="relaxed"] {
.settings-tab-button { .settings-tab-button {
min-height: 64px; min-height: 64px;
border-radius: 8px; border-radius: 8px;
transition: none; transition:
background-color 140ms ease,
color 140ms ease,
box-shadow 160ms ease,
transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.settings-tab-button:active {
transform: scale(0.98);
}
.settings-tab-button:focus-visible {
outline: none;
box-shadow: 0 0 0 3px hsl(var(--accent-color) / 0.24);
} }
.settings-tab-button[data-active="true"] { .settings-tab-button[data-active="true"] {
background: hsl(var(--accent-color)); background: hsl(var(--accent-color));
box-shadow: none; box-shadow: none;
color: white; color: hsl(var(--accent-foreground));
} }
.settings-pane { .settings-pane {
@@ -1625,6 +1649,11 @@ html[data-list-density="relaxed"] {
padding: 32px; padding: 32px;
} }
.settings-page-transition {
animation: settings-page-in 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
transform-origin: top center;
}
.settings-title { .settings-title {
margin: 0 0 24px; margin: 0 0 24px;
font-size: 28px; font-size: 28px;
@@ -1634,7 +1663,8 @@ html[data-list-density="relaxed"] {
} }
.settings-section-title { .settings-section-title {
margin: 0 0 7px 12px; margin: 0 0 7px;
padding-inline-start: 12px;
font-size: 12px; font-size: 12px;
line-height: 1.2; line-height: 1.2;
font-weight: 600; font-weight: 600;
@@ -1763,6 +1793,8 @@ html[data-list-density="relaxed"] {
box-shadow: box-shadow:
0 18px 42px hsl(0 0% 0% / 0.28), 0 18px 42px hsl(0 0% 0% / 0.28),
inset 0 1px 0 hsl(0 0% 100% / 0.06); inset 0 1px 0 hsl(0 0% 100% / 0.06);
animation: settings-menu-in 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
transform-origin: top center;
} }
.settings-combobox-option { .settings-combobox-option {
@@ -1841,6 +1873,11 @@ html[data-list-density="relaxed"] {
box-shadow: 0 0 0 1px hsl(var(--accent-color)); box-shadow: 0 0 0 1px hsl(var(--accent-color));
} }
.theme-option:has(input:focus-visible) {
outline: 2px solid hsl(var(--accent-color) / 0.55);
outline-offset: 2px;
}
.theme-option input { .theme-option input {
position: absolute; position: absolute;
width: 1px; width: 1px;
@@ -1880,10 +1917,19 @@ html[data-list-density="relaxed"] {
background: hsl(var(--border-color)); background: hsl(var(--border-color));
border-radius: 20px; border-radius: 20px;
position: relative; position: relative;
cursor: default; cursor: pointer;
outline: none; outline: none;
transition: background 0.2s ease; transition: background 0.2s ease;
} }
.mac-switch:focus-visible {
box-shadow: 0 0 0 3px hsl(var(--accent-color) / 0.24);
}
.mac-switch:disabled {
cursor: default;
opacity: 0.55;
}
.mac-switch::after { .mac-switch::after {
content: ''; content: '';
position: absolute; position: absolute;
@@ -1907,6 +1953,15 @@ html[data-list-density="relaxed"] {
button[role="switch"] { button[role="switch"] {
direction: ltr; direction: ltr;
} }
button[role="switch"]:focus-visible {
outline: none;
box-shadow: 0 0 0 3px hsl(var(--accent-color) / 0.24);
}
button[role="switch"]:disabled {
opacity: 0.55;
}
.downloads-view { .downloads-view {
background: hsl(var(--main-bg)); background: hsl(var(--main-bg));
} }
@@ -2912,6 +2967,24 @@ body.is-queue-dragging * {
.download-context-submenu { .download-context-submenu {
inset-inline-start: 100%; inset-inline-start: 100%;
margin-inline-start: 0.25rem; margin-inline-start: 0.25rem;
opacity: 0;
visibility: hidden;
pointer-events: none;
transform: translateY(-3px) scale(0.98);
transform-origin: top left;
transition:
opacity 120ms ease,
transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1),
visibility 0s linear 120ms;
}
.group:hover > .download-context-submenu,
.group:focus-within > .download-context-submenu {
opacity: 1;
visibility: visible;
pointer-events: auto;
transform: translateY(0) scale(1);
transition-delay: 0s;
} }
.app-workspace--sidebar-right .download-context-submenu { .app-workspace--sidebar-right .download-context-submenu {
@@ -2919,6 +2992,7 @@ body.is-queue-dragging * {
inset-inline-end: 100%; inset-inline-end: 100%;
margin-inline-start: 0; margin-inline-start: 0;
margin-inline-end: 0.25rem; margin-inline-end: 0.25rem;
transform-origin: top right;
} }
html[dir="rtl"] .download-context-menu-chevron { html[dir="rtl"] .download-context-menu-chevron {
@@ -3175,6 +3249,28 @@ html[dir="rtl"] .download-context-menu-chevron {
to { opacity: 1; } to { opacity: 1; }
} }
@keyframes settings-page-in {
from {
opacity: 0;
transform: translateY(6px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes settings-menu-in {
from {
opacity: 0;
transform: translateY(-3px) scale(0.98);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@keyframes modal-backdrop-in { @keyframes modal-backdrop-in {
from { background-color: hsl(0 0% 0% / 0); } from { background-color: hsl(0 0% 0% / 0); }
to { background-color: hsl(0 0% 0% / 0.2); } to { background-color: hsl(0 0% 0% / 0.2); }