Changed theme to liquid glass

This commit is contained in:
patben8 committed 2026-09-25 14:57:27 +02:00
1 parent 950352f7ec
commit 2810f24563
52 files changed
+1353 -529

No files matched your search

+11 -11
View File
@@ -3,6 +3,7 @@ import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'
import { api } from '../api'
import { useCaps } from '../lib/capabilities'
import { overwriteWarning, readOnlyNotice, saveLabel } from '../lib/platformCopy'
import { Icon } from '../lib/icons'
interface Props {
onError: (msg: string) => void
@@ -39,9 +40,9 @@ export function SaveBar({ onError, trailing }: Props) {
// point: a greyed-out button with no explanation reads as a bug.
if (readOnly) {
return (
<div className="flex items-stretch gap-2 border-t border-line bg-ink-900 px-3 py-3">
<div className="min-w-0 flex-1 rounded-md bg-ink-800 px-2 py-2 text-[11px] leading-snug text-faint">
<span className="font-medium text-ink-200">Read-only</span>
<div className="flex items-stretch gap-2 border-t border-line px-3 py-3">
<div className="min-w-0 flex-1 rounded-xl bg-ink-800 px-2.5 py-2 text-[11px] leading-snug text-faint">
<span className="font-medium text-text">Read-only</span>
<div className="mt-1">{readOnly}</div>
</div>
{trailing}
@@ -50,27 +51,26 @@ export function SaveBar({ onError, trailing }: Props) {
}
return (
<div className="border-t border-line bg-ink-900 px-3 py-3">
<div className="border-t border-line px-3 py-3">
{dirty && warning && (
<div className="mb-2 rounded-md bg-gold/10 px-2 py-1.5 text-[11px] leading-snug text-gold">
⚠ {warning}
<div className="mb-2 flex gap-1.5 rounded-xl bg-gold/10 px-2.5 py-1.5 text-[11px] leading-snug text-gold">
<Icon name="warning" size={13} className="mt-px shrink-0" />
<span>{warning}</span>
</div>
)}
<div className="flex items-stretch gap-2">
<button
disabled={!dirty || save.isPending}
onClick={() => save.mutate()}
className={`flex min-w-0 flex-1 items-center justify-center gap-2 rounded-md px-3 py-2 text-sm font-medium transition-colors ${
dirty
? 'bg-accent text-ink-950 hover:brightness-110'
: 'cursor-not-allowed bg-ink-800 text-faint'
className={`flex h-10 min-w-0 flex-1 items-center justify-center gap-2 rounded-full px-3 text-sm font-semibold transition-colors ${
dirty ? 'btn-primary' : 'cursor-not-allowed bg-ink-800 font-medium text-faint'
}`}
>
{save.isPending ? (
'Saving…'
) : dirty ? (
<>
<span className="h-1.5 w-1.5 rounded-full bg-ink-950/60" />
<span className="h-1.5 w-1.5 rounded-full bg-well" />
{saveLabel(caps.save)}
</>
) : (