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

@@ -2,6 +2,7 @@ import { useEffect, useRef, useState } from 'react'
import { useQuery, useQueryClient } from '@tanstack/react-query'
import { api, type RemapPreview } from '../api'
import type { ToastMsg } from './Toast'
import { Icon } from '../lib/icons'
interface Props {
onClose: () => void
@@ -103,11 +104,11 @@ export function PathMappingDialog({ onClose, onNotify, onError }: Props) {
return (
<div
aria-modal="true" className="fixed inset-0 z-40 flex items-center justify-center bg-black/60 p-6"
aria-modal="true" className="fixed inset-0 z-40 flex items-center justify-center bg-black/40 backdrop-blur-[3px] p-6"
onClick={onClose}
>
<div
className="flex max-h-[85vh] w-full max-w-xl flex-col overflow-hidden rounded-xl border border-line bg-ink-900 shadow-2xl"
className="flex max-h-[85vh] w-full max-w-xl flex-col overflow-hidden glass-overlay"
onClick={(e) => e.stopPropagation()}
>
<div className="border-b border-line px-5 py-4">
@@ -159,7 +160,7 @@ export function PathMappingDialog({ onClose, onNotify, onError }: Props) {
/>
<button
onClick={() => setBrowsing((b) => !b)}
className="shrink-0 rounded-md border border-line px-3 py-1.5 text-sm text-muted hover:bg-ink-800 hover:text-text"
className="shrink-0 btn-glass rounded-full px-3 py-1.5 text-sm text-muted hover:text-text"
>
{browsing ? 'Close' : 'Browse…'}
</button>
@@ -239,7 +240,7 @@ export function PathMappingDialog({ onClose, onNotify, onError }: Props) {
<button
onClick={saveMapping}
disabled={saving}
className="rounded-md bg-accent px-3 py-1.5 text-sm font-medium text-ink-950 hover:brightness-110 disabled:opacity-50"
className="rounded-full btn-primary px-3 py-1.5 text-sm font-semibold disabled:opacity-50"
>
{saving ? 'Saving…' : 'Save mapping'}
</button>
@@ -289,7 +290,7 @@ function FolderBrowser({
onClick={() => setDir(d.path)}
className="flex w-full items-center gap-2 px-3 py-1.5 text-left text-sm text-text hover:bg-ink-800"
>
<span className="text-faint">📁</span>
<span className="flex text-faint"><Icon name="folder" size={15} /></span>
<span className="truncate">{d.name}</span>
</button>
))