Skip to content

Pine editor: One Dark Pro / Dracula / GitHub themes, finer colours, a status bar, an 8px editable code size - #15

Merged
godzillacode0000 merged 4 commits into
mainfrom
claude/hermes-plugin-readonly-audit-5u7anz
Oct 31, 2026
Merged

godzillacode0000 merged 4 commits into
mainfrom
claude/hermes-plugin-readonly-audit-5u7anz

Conversation

@godzillacode0000

@godzillacode0000 godzillacode0000 commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator

Three commits on top of main (8995746).

The operator asked for the Pine editor (the </> button) to look like a real code editor, in the most popular style, with a code size that can be read and changed (8px by default).

1. Editor themes (8f8f037)

  • The three themes that top every list of the most installed VS Code themes: One Dark Pro (default), Dracula and GitHub.
    • Each has its light sibling, used when the console is light: One Light, Alucard and GitHub Light.
    • Console keeps the editor as it was.
  • Published palettes as tokens. The colours are each theme's published palette. They live with the console's other tokens, and a theme re-defines the editor's own tokens, so the caret, gutter, line tint and selection follow it.
  • Finer colours. refine() in script-highlight.js is a second pass over the unchanged tokenizer. It colours these apart: calls, types, literals, built-in series, constants, named arguments and operators. The texts still join back to every line, which is checked against the repo's Pine, partial lines and edge cases.
  • A status bar under the code: the Pine version (read from //@version), Ln/Col and the selection size, the code size, and the theme picker.
  • See-through line tint and selection. Both are drawn over the text, and an opaque one hid the line number and the selected word.

2. The code size (48ef267)

  • The footer shows A− 8px A+. 8px is the new default (it was 6.25px).
  • You can type any size from 6 to 24px. Values snap to quarter pixels and out-of-range values are pulled into range.
  • A−/A+ step by 1px. From the editor, Ctrl+= / Ctrl+− change it and Ctrl+0 resets to 8px.
  • The choice is kept per browser.

3. A test fix from #14's review (070fd96)

  • PR Lens noted that counting checkHealth( also matches the definition. The old count did too (definition + 3 calls = 4), so nothing had got weaker.
  • The test now counts the call sites alone.

Test plan

  • Full backend suite: OK (9 skipped). New: test_editor_themes.py (refine table, join-back corpus, palettes, light siblings, footer, size range, keys). The pane-CSS "tokens only" test still holds.
  • ruff, node --check, vendor-sums --check, modulepreload --check, verify-plugin.mjs.
  • Chromium: every theme, dark and light, at 6.25px, 8px and 11px. Checked:
    • selection and line numbers line up with the text;
    • typing 12 applies it;
    • A−, Ctrl+= twice, Ctrl+0;
    • typing 99 gives 24, and 6.3 gives 6.25;
    • the size survives a reload;
    • the gutter and the coloured copy always match the textarea's size;
    • no console errors.

Generated by Claude Code


Play the walkthrough

…olours, a status bar

The Pine editor gets the three most installed editor themes, each with its
light sibling (One Light, Alucard, GitHub Light), plus Console, the editor as
it was. A theme re-defines the editor's own tokens, so the caret, gutter,
line tint and selection follow it.

refine() is a second pass over the tokenizer. It colours calls, types,
literals, built-in series, constants, named arguments and operators apart,
and the texts still join back to every line.

A status bar under the code shows the Pine version, the caret's line and
column, A-/A+ for the code size (starting at the operator's 6.25px) and the
theme picker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GLsbckEp88WEwC41dfyMeS
PR Lens noted on #14 that counting "checkHealth(" also matches the function's
definition. The old count did too (definition + 3 calls = 4), so nothing got
weaker. The test now counts the calls alone and says what it checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GLsbckEp88WEwC41dfyMeS
… 8px by default

The footer shows A− 8px A+. Type any size from 6 to 24px (quarter pixels,
kept to the range). A−/A+ step by 1px, and from the editor Ctrl+= / Ctrl+−
change it and Ctrl+0 resets to 8px. The gutter and the coloured copy follow
the size, so the line numbers stay on their lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GLsbckEp88WEwC41dfyMeS
@coldtea-pr-lens

coldtea-pr-lens Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
  • Redraw · drawn at 48ef267, the branch has moved on

Architecture

Architecture diagram for godzillacode0000/tradersagent-plugin at 48ef267

Play the walkthrough


Data flow

No data-flow sequence changed in this PR.


Review

1 finding on the diff · reviewed 48ef267

Tip

The CLI's render reads .github/pr-lens.yml and applies your renames, exclusions and lane pins at draw time

🪧 More tips
  • Run npx skills add coldteadotai/pr-lens, then tell your coding agent: "Diagram the change you just made with PR Lens and attach it to the pull request."
  • Run npx @coldtea/pr-lens-cli analyze --base origin/main on a branch, then npx @coldtea/pr-lens-cli render .pr-lens/graph.json. Same lenses, your own model key, before the pull request exists
  • Click the link under each diagram to open it on a canvas you can zoom, pan and step through
  • The diagrams are links. Click one to open it on the canvas, then press W or click play to walk through the change
  • Open a diagram on the canvas, then press W or click play to walk through the change one step at a time
  • Set github.comment.collapsed: true in .github/pr-lens.yml to fold the comment behind one View architecture… row. Drawing still runs as before
  • Set github.draw: on-demand in .github/pr-lens.yml and PR Lens stops drawing pull requests on its own. Comment @pr-lens draw on a pull request when you want that one drawn
  • Add .github/workflows/pr-lens.yml with coldteadotai/pr-lens/packages/action@v0 and your model provider's key as its api-key to run PR Lens from your own CI. Any /chat/completions endpoint works
  • After a push, tick Redraw to draw the latest commit
  • Switch GitHub to dark mode and the diagrams follow. The moving dots are this pull request's data in motion
  • Set github.description: false in .github/pr-lens.yml to stop PR Lens adding buttons to your PR descriptions

Thanks for using PR Lens! It's free for OSS. If it helped, a star helps other teams find it.  Star PR Lens on GitHub

Comment thread console/frontend/styles.css Resolved
PR Lens noted on #15: with no editor theme, refine()'s literal, constant and
operator classes fell back to the number and muted colours. Before refine()
they were keyword-coloured, built-in-coloured and plain. Each finer class now
falls back to the colour its token had, so Console looks as it always did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GLsbckEp88WEwC41dfyMeS
@godzillacode0000
godzillacode0000 merged commit 5234587 into main Oct 31, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants