Skip to content

Agent Zero AI framework

Theme dark checkboxes and center memory dashboard selection

Alessandroa8a4f1456e09
diff --git a/plugins/_memory/AGENTS.md b/plugins/_memory/AGENTS.md
index effbfcb79..eb86db63c 100644
--- a/plugins/_memory/AGENTS.md
+++ b/plugins/_memory/AGENTS.md
@@ -26,6 +26,7 @@
## Work Guidance
+- Dashboard selection checkboxes reuse the shared native theme from `webui/index.css`; keep header and row controls 16px and centered in their table cells.
- Keep dashboard metadata JSON-safe without changing shared API serialization.
- Coordinate tool, prompt, and consolidation changes so saved memories remain useful and bounded.
diff --git a/plugins/_memory/webui/memory-dashboard.html b/plugins/_memory/webui/memory-dashboard.html
index c9a99de4d..2859bd3c1 100644
--- a/plugins/_memory/webui/memory-dashboard.html
+++ b/plugins/_memory/webui/memory-dashboard.html
@@ -463,10 +463,6 @@
.col-actions {
width: 4em;
}
- .col-select input[type="checkbox"] {
- cursor: pointer;
- transform: scale(1.2);
- }
/* Memory-specific: Metadata display */
.metadata-cell {
@@ -554,9 +550,16 @@
text-align: center;
padding: 0.65rem 0.5rem !important;
}
- .select-cell input[type="checkbox"] {
+ .memory-table .col-select,
+ .memory-table .select-cell {
+ vertical-align: middle;
+ }
+ .memory-table input[type="checkbox"] {
+ display: block;
+ width: 1rem;
+ height: 1rem;
+ margin: 0 auto;
cursor: pointer;
- transform: scale(1.2);
}
/* Memory-specific: Actions cell vertical layout */
diff --git a/webui/AGENTS.md b/webui/AGENTS.md
index eed27c186..520f8b8b7 100644
--- a/webui/AGENTS.md
+++ b/webui/AGENTS.md
@@ -30,6 +30,7 @@
- Avoid editing vendored files unless intentionally updating the vendor asset.
- Startup scripts in `index.html` must be local and non-parser-blocking: use ES modules, `defer`, or `async` for every script with `src`.
- Baseline main and login pages must load scripts, styles, fonts, and images from same-origin vendored or first-party assets so they remain usable without internet access.
+- Native checkboxes use dark surfaces and the `--color-input` accent in dark mode; the mixed state uses the native light-scheme mark for contrast; retain native checkmarks, indeterminate marks, keyboard focus, disabled behavior, and light-mode appearance. This shared rule lives in `index.css`.
- Rubik (`--font-family-main`) is the default WebUI text and control font; use the code/mono font tokens only for code, logs, paths, and fixed-width data.
- Hover, focus, and active border treatments should follow existing neutral border/background patterns; avoid hard-coded blue border highlights unless matching an established specialized surface.
- Keep transient UI affordances such as Bootstrap tooltips and notification toasts above normal and legacy modal layers while confirmation dialogs remain on top.
diff --git a/webui/index.css b/webui/index.css
index d6157b924..34e76c694 100644
--- a/webui/index.css
+++ b/webui/index.css
@@ -117,6 +117,16 @@
}
+.dark-mode input[type="checkbox"] {
+ color-scheme: dark;
+ accent-color: var(--color-input);
+}
+
+/* Keep the native mixed-state dash light against the dark accent. */
+.dark-mode input[type="checkbox"]:indeterminate {
+ color-scheme: light;
+}
+
html {
font-family: var(--font-family-main);
}