Button-System aus llm-arena: primary-Verlauf, Übergänge, disabled-Stil, danger, neue accent-Variante

This commit is contained in:
2026-11-09 18:07:06 +01:00
parent 92aa5ac585
commit 5526f1533e
2 changed files with 31 additions and 6 deletions

View File

@ -203,6 +203,8 @@ impl MpvPlayer {
crate::audible::apply_child_env(&mut spawned); crate::audible::apply_child_env(&mut spawned);
let spawned = spawned let spawned = spawned
.args([ .args([
"--no-terminal",
"--idle=yes",
&format!("--input-ipc-server={}", self.socket.to_string_lossy()), &format!("--input-ipc-server={}", self.socket.to_string_lossy()),
"--vo=null", "--vo=null",
"--audio-display=no", "--audio-display=no",

View File

@ -103,18 +103,29 @@ h1 {
} }
button { button {
font: inherit;
border: 1px solid var(--border); border: 1px solid var(--border);
border-radius: 6px; border-radius: 10px;
padding: 0.45rem 0.9rem; padding: 0.45rem 0.9rem;
background: var(--bg-card); background: var(--bg-card-2);
color: var(--fg); color: var(--fg);
cursor: pointer; cursor: pointer;
font-size: 0.92rem; font-size: 0.92rem;
white-space: nowrap; white-space: nowrap;
transition: border-color 0.12s, transform 0.12s, background 0.12s;
} }
button:hover:enabled { button:hover:not(:disabled) {
filter: brightness(1.15); border-color: var(--accent);
}
button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
button.danger {
color: var(--error);
} }
button:disabled { button:disabled {
@ -123,12 +134,24 @@ button:disabled {
} }
button.primary { button.primary {
background: var(--accent); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, white), var(--accent));
border-color: var(--accent); border-color: var(--accent);
color: #fff; color: var(--accent-text);
font-weight: 600; font-weight: 600;
} }
button.accent {
color: var(--accent);
background: var(--accent-soft);
border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
font-weight: 600;
}
button.accent:hover:not(:disabled) {
border-color: var(--accent);
filter: none;
}
button.primary, button.primary,
.actions button { .actions button {
padding: 0.32rem 0.65rem; padding: 0.32rem 0.65rem;