Skip to content

Add a Unicode paint overlay for branding art - #13083

Open
calledtoconstruct wants to merge 9 commits into
omacom:quattrofrom
calledtoconstruct:ascii-paint
Open

calledtoconstruct wants to merge 9 commits into
omacom:quattrofrom
calledtoconstruct:ascii-paint

Conversation

@calledtoconstruct

@calledtoconstruct calledtoconstruct commented Sep 24, 2026 •

Copy link
Copy Markdown

What

Adds a built-in overlay, omarchy.ascii-paint, for drawing the branding text files with the mouse. Style → About → Paint and Style → Screensaver → Paint open it on about.txt and screensaver.txt. omarchy ascii paint [path] opens the same overlay for any UTF-8 art file.

The tools stamp block quadrants, braille, shade, and auto-joining box drawing, or type a single line into a cell. Save writes the file, keeps the previous version as *.bak, and can relaunch the screensaver or About so the result is visible while the editor stays open.

omarchy ascii is unchanged. That command renders words in the Delta Corps Priest 1 font. Paint edits the cell art those branding files already store.

The shared Button and ConfirmDialog changes, including the border stability test, are in #14788. This pull request no longer changes those files. The painter handles Keep (K) and Discard (D) on its own dialog.

Test plan

  • bash test/shell.d/ascii-paint-test.sh
  • bash test/shell.d/ascii-paint-input-test.sh
  • ./bin/omarchy commands --check

@omarchybot omarchybot added the enhancement New feature or request label Sep 27, 2026

@chessing234 chessing234 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please initialize the canvas when opening an empty file.

root.applyCanvas(PaintModel.parse(text), false)
return
}
if (!root.filePath) root.applyCanvas(PaintModel.createCanvas(80, 24), false)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please initialize a blank canvas for an existing empty file too: opening one sets filePath, so applyFile("") skips both branches and leaves canvasReady false. the drawing and typing handlers then return immediately, making a newly touched .txt file impossible to edit.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 0d84b7c: an existing empty file now opens as a clean 80 by 24 canvas, and the input suite paints on it.

a0e7eb3 also covers the later notes. Flood fill walks its queue by index, a save still launches the About or screensaver preview when strokes land during the write, and the input suite sends Qt key events through the key catcher instead of calling pressKey directly.

Please take another look.

@greptile-apps

greptile-apps Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge based on the changes since the previous review and the resolved prior threads.

Summary

The PR adds a Unicode cell-art overlay, exposes it through the branding menus and CLI, and adds a save-file chooser mode.

  • The changes since the previous review localize the branding image-picker titles and the file chooser’s default title.
  • No new actionable issue was identified in those changes. All previous Greptile threads are resolved.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[Branding menu or CLI] --> B[Unicode paint overlay]
  B --> C[Load and edit cell art]
  C --> D[Back up existing file]
  D --> E[Save art]
  E --> F[Optional About or screensaver preview]
Loading

Reviews (8) · Last reviewed commit: "Review the shared button and confirm dia..." · Reviewed by Greptile

Comment thread shell/plugins/ascii-paint/PaintModel.js Resolved
Comment thread shell/plugins/ascii-paint/PaintModel.js Resolved
Comment thread shell/plugins/ascii-paint/PaintModel.js Resolved
@jandrusk

jandrusk commented Oct 8, 2026

Copy link
Copy Markdown

Neat feature. One scope concern before review: this PR also rewrites the shared shell/Ui/Button.qml, which the tray, media widget, ButtonGroup and several panels (network, monitor, power, elsewhen) use directly. It swaps MouseArea for HoverHandler + two TapHandlers with TakeOverForbidden, and adds opacity: enabled ? 1 : 0.4. Every disabled Button in the shell would dim, and a press that starts on a button inside a ListView/Flickable (network, monitor panels) can no longer be taken over for drag-scrolling.

Those may be good changes, but they're independent of the paint overlay and much easier to review and test on their own. Would you split the Button.qml/ConfirmDialog.qml change (with button-border-stability-test.sh) into a separate PR? With ~3.3k lines, whether a built-in paint editor belongs in core rather than the plugin marketplace is probably a maintainer call anyway.

@calledtoconstruct

Copy link
Copy Markdown
Author

Split the shared Button and ConfirmDialog changes, with the border stability test, into #14788. This pull request no longer changes those files. The painter still handles Keep (K) and Discard (D) on its own dialog.

@calledtoconstruct

Copy link
Copy Markdown
Author

The disabled-button dimming is in #14788. This pull request no longer changes shell/Ui/Button.qml, so a disabled button looks the same as it does on quattro.

@jandrusk

Copy link
Copy Markdown

Thanks for splitting it out. With Button.qml and ConfirmDialog in #14788, this PR no longer affects the other panels, and each part can be reviewed separately.

Save As now creates a new file before writing it, which the suite covers along with the tools, history, zoom, canvas edges, and the discard dialog.
A zero-length file loads successfully, so applyFile left canvasReady false once filePath was set. Drawing and typing then returned immediately.
The prepare step kept going after cp failed, and the painter then replaced the original. A failed copy now stops first. The status line and a notification say the file was left unchanged.
…ines

Open asks before replacing a painting, and a file that cannot be read leaves the current one in place. The modified flag now clears only after the write succeeds. Diagonal line strokes use orthogonal steps so the corners stay visible, and typed emoji stay one cell.
A stroke made while a write is finishing stays modified and undoable, because the file only received the snapshot. Opening a blank canvas cancels a read that has not finished. A second open that cannot be read restores the last ready painting. The input suite also stays off the keyboard.
Flood fill walks its queue by index. A save still previews when later
strokes land on the canvas. The input suite delivers key events through
the overlay's key catcher.
commitSaved stops the pending preview timer before a later save starts
its own, so a clean save followed by an overlapped one does not launch
the screensaver or About twice.
Those controls now live on their own branch. The painter handles Keep and
Discard while its dialog is open, and still swallows other keys so a
shortcut cannot change the tool underneath.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants