Repository navigation
Add a Unicode paint overlay for branding art - #13083
calledtoconstruct wants to merge 9 commits into
Conversation
chessing234
left a comment
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
[Medium impact] The PR appears safe to merge based on the changes since the previous review and the resolved prior threads. SummaryThe PR adds a Unicode cell-art overlay, exposes it through the branding menus and CLI, and adds a save-file chooser mode.
|
|
Neat feature. One scope concern before review: this PR also rewrites the shared 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 |
|
Split the shared |
|
The disabled-button dimming is in #14788. This pull request no longer changes |
|
Thanks for splitting it out. With |
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.
c70ba4c to
2b15701
Compare
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 onabout.txtandscreensaver.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 asciiis unchanged. That command renders words in the Delta Corps Priest 1 font. Paint edits the cell art those branding files already store.The shared
ButtonandConfirmDialogchanges, 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.shbash test/shell.d/ascii-paint-input-test.sh./bin/omarchy commands --check