v2.51.1
Random AI prompt + image generator for the Stable Diffusion WebUI -- a CLI and a local web UI.
Pre-release software. Provided as-is under Apache-2.0.
What's new in this release
2026-07-09 — Fix the DPL editor's white gutter + washed-out active line in dark mode (2.51.1)
The live editor showed a bright-white line-number column and a milky blue active-line band in dark
mode. Root cause: CodeMirror 6's gutter baseTheme ships both &light .cm-gutters {#f5f5f5} and a
&dark variant, chosen by whether the view's theme declares { dark: true } — and our editors never
did. So CM stayed in light mode and injected the light gutter (#f5f5f5), the light active-line
gutter (#e2f2ff), and the milky active-line wash (rgba(204,238,255,.267)) at the SAME specificity
as our .dpl-editor .cm-* CSS, beating it on source order. A plain-CSS override could never win.
- New shared
themeextension (targets/web/frontend/lib/editorChrome.js): a CodeMirror
EditorView.theme(StyleModule priority > baseTheme, so it wins) that sets a transparent gutter
with dim recessed numbers, a brighter neutral active-line NUMBER, a whisper-subtle neutral
active-line lift (4.5% of--fg), and the accent-tinted selection. Colors are the app's CSS
variables, so the chrome tracks light/dark on its own (no hard-pinneddarkflag). - Wired into both editors —
DplEditor.jsx(the prompt boxes) andCodeEditor.jsx(Manage's
code/list editors, which had NO gutter override and showed the same white slab). - Dropped the dead CSS in
dpl-editor.css(the losing.cm-gutters/.cm-activeLine*/selection
rules), leaving a comment that explains why the chrome lives in the theme now. - Regression test
tests/e2e/editor-chrome.spec.js— asserts (dark scheme) a non-light gutter
surface and a neutral, untinted active-line band. Verified visually at prompt.fairyfox.io parity in
dark AND light mode.
How to get it
Prefer not to build? Download a pre-built edition:
- Desktop app -- Windows
.msi/.exe(or a portable.zip), macOS.dmg, Linux.AppImage/.deb(attached below). Self-contained; nothing to install first. random-ai-prompt-2.51.1-online.zip-- the online edition as static files; host it anywhere, or just use https://prompt.fairyfox.io.random-ai-prompt-2.51.1.tar.gz-- source tarball (run with Node 24:npm installthennpm start).random-ai-prompt-2.51.1-docs.zip-- the generated documentation site.
What's Changed
- Release v2.51.1 by @junebug12851 in #48
Full Changelog: v2.51.0...v2.51.1