feat(desktop/ui): force light theme for readability in Tauri; strengthen contrast for card/input/alerts; add inventory summary cards

This commit is contained in:
Esdras Renan 2025-10-10 00:18:39 -03:00
parent c70691bce8
commit 319e9d0eef
3 changed files with 22 additions and 63 deletions

View file

@ -2,6 +2,7 @@
<html lang="pt-BR"> <html lang="pt-BR">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="color-scheme" content="light" />
<link rel="stylesheet" href="/src/styles.css" /> <link rel="stylesheet" href="/src/styles.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Sistema de Chamados — Agente Desktop</title> <title>Sistema de Chamados — Agente Desktop</title>

View file

@ -1,10 +1,10 @@
:root { :root {
color-scheme: light dark; color-scheme: light; /* força tema claro para máxima legibilidade */
font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
font-size: 16px; font-size: 16px;
line-height: 1.5; line-height: 1.5;
background-color: #f1f5f9; background-color: #f8fafc; /* slate-50 */
color: #0f172a; color: #0f172a; /* slate-900 */
margin: 0; margin: 0;
} }
@ -22,12 +22,11 @@ body {
} }
.card { .card {
width: min(440px, 100%); width: min(520px, 100%);
background-color: rgba(255, 255, 255, 0.85); background-color: #ffffff;
border-radius: 16px; border-radius: 16px;
box-shadow: 0 16px 60px rgba(15, 23, 42, 0.16); box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
padding: 28px; padding: 28px;
backdrop-filter: blur(12px);
} }
.card header h1 { .card header h1 {
@ -88,10 +87,10 @@ input,
select { select {
padding: 10px 12px; padding: 10px 12px;
border-radius: 10px; border-radius: 10px;
border: 1px solid rgba(148, 163, 184, 0.6); border: 1px solid #cbd5e1; /* slate-300 */
font-size: 1rem; font-size: 1rem;
background-color: rgba(241, 245, 249, 0.8); background-color: #ffffff;
color: inherit; color: #0f172a;
transition: border-color 0.2s ease, box-shadow 0.2s ease; transition: border-color 0.2s ease, box-shadow 0.2s ease;
} }
@ -231,57 +230,15 @@ button:hover:not(:disabled) {
} }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
:root { /* forçamos visual claro também em modo escuro do sistema */
background-color: #0f172a; :root { background-color: #f8fafc; color: #0f172a; }
color: #e2e8f0; .card { background-color: #ffffff; color: #0f172a; box-shadow: 0 10px 30px rgba(15,23,42,0.12); }
} .subtitle { color: #475569; }
.alert { background-color: #e0f2fe; color: #0f172a; }
.card { .alert.error { background-color: #fee2e2; color: #b91c1c; }
background-color: rgba(15, 23, 42, 0.75); .alert.success { background-color: #dcfce7; color: #166534; }
color: #e2e8f0; input, select { background-color: #ffffff; border-color: #cbd5e1; }
box-shadow: 0 12px 32px rgba(15, 23, 42, 0.4); button.secondary { color: #2563eb; }
} .machine-summary { background-color: rgba(15, 23, 42, 0.05); }
.status-text { color: #334155; }
.subtitle {
color: #94a3b8;
}
.alert {
background-color: rgba(37, 99, 235, 0.16);
color: #bfdbfe;
}
.alert.error {
background-color: rgba(248, 113, 113, 0.2);
color: #fecaca;
}
.alert.success {
background-color: rgba(34, 197, 94, 0.18);
color: #bbf7d0;
}
input,
select {
background-color: rgba(15, 23, 42, 0.5);
border-color: rgba(148, 163, 184, 0.35);
}
input:focus,
select:focus {
border-color: #60a5fa;
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.32);
}
button.secondary {
color: #93c5fd;
}
.machine-summary {
background-color: rgba(148, 163, 184, 0.12);
}
.status-text {
color: #cbd5f5;
}
} }

1
resp.json Normal file
View file

@ -0,0 +1 @@
{"machineId":"jn7dtb6hy25w8f6h3hkxfr66wx7s7mk4","tenantId":"tenant-atlas","machineToken":"eea4477d0f107b5291a2fcdf41945be12d0ff8775beeb92d7bbeb1b26df101ca","machineEmail":"machine-jn7dtb6hy25w8f6h3hkxfr66wx7s7mk4@machines.local","expiresAt":1762658209388}