Sketch background colour picker; build as GUI app (no console)#15
Merged
Conversation
1) New "Sketch" section in the side panel with a colour picker (default
white) controlling the background behind the sketch canvas — the area
around it (and the fullscreen letterbox). Baked into the iframe on run
and pushed live to a running sketch via postMessage ('set-bg').
2) Windows: build the target as a GUI app (WIN32_EXECUTABLE +
/ENTRY:mainCRTStartup so int main() stays the entry point), so no
console window opens when the .exe is launched (dev or distributed).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
1. Sketch background colour picker
New Sketch section in the right side panel with a colour picker (default white). It sets the background shown behind the sketch canvas — the area around it when the canvas is smaller than the preview, and the fullscreen letterbox.
<body>background when a sketch runs.postMessage({type:'set-bg'})(handled by the capture controller already injected in the iframe) — no restart.--sketch-bgCSS variable so the:fullscreenpreview letterbox matches.2. No console window
On Windows the target is now built as a GUI app:
WIN32_EXECUTABLE TRUEplus/ENTRY:mainCRTStartup(MSVC) so the standardint main()stays the entry point. Launching the.exe— dev build or the distributed one — no longer pops a console window.Trade-off:
std::cerr/std::coutlogging is no longer visible from a console (attach a debugger if needed during development). Noted in AGENTS.md.Reviewer notes
node --checkpasses; reconfigured + Debug build links cleanly.WINDOWS_CUI(3) toWINDOWS_GUI(2), and the app still launches and binds loopback.🤖 Generated with Claude Code