ui: an outcome in the footer (Refresh, Test models, a save) is a solid pill in its colour, larger, and an error stays 8 seconds — a result in the window's corner was faint over a desktop showing through, told only by its colour

This commit is contained in:
yetone
2026-09-27 20:31:22 +08:00
parent 261f0594de
commit ef13e07e79
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -566,6 +566,9 @@ body.window .foot { padding-left: 18px; }
.status.ok { color: var(--green); }
.status.err { color: var(--red); }
.status.warn { color: var(--amber); }
/* an outcome (Refresh, Test models…) stands out from the corner it is in:
a solid pill in its colour, over a window the desktop shows through */
.status.ok, .status.err, .status.warn { font-size: 12.5px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, currentColor 16%, var(--bg)); box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 30%, transparent); }
/* ---- picker popover ------------------------------------------------------- */
.pop {
+1 -1
View File
@@ -131,7 +131,7 @@ function icon(name) {
return e;
}
function status(msg, kind = "", ms = 3500) {
function status(msg, kind = "", ms = kind === "err" ? 8000 : 3500) {
const s = $("#status");
s.textContent = msg;
s.title = msg;