Repository navigation
Redraw the icons of the VIs added since v3.0.0 in Small Fonts - #38
Merged
Merged
Conversation
The toolkit's icons use the Windows raster font Small Fonts at 7 px, drawn in LabVIEW's icon editor. The line drawing of lvai_set_vi_icon, which generated the icons of every VI added since v3.0.0, uses a larger bitmap font of its own, so those icons looked different and their text often touched the frame. tools/icons/New-VIIcon.ps1 draws a 32x32 PNG through GDI with Small Fonts in the same layout as the existing icons: toolkit (green "MCP" banner), class (yellow banner with a short class name) and test (red banner) styles, one to three centred lines of at most 28 px. It reproduces the existing icons of tool call, Build Tool, Start, Add Array Items To Schema, Generate Unique Server ID and Add Fixture Tool pixel for pixel. tools/icons/README.md says how to apply such a PNG without leaving the LabVIEW 20.0 format, and CLAUDE.md now points to the script. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 73 VIs added since v3.0.0 had icons drawn with a larger bitmap font than the rest of the toolkit, and on several of them the text ran into the frame (STRUC CONT, ACCES SETNG, START STRM, CANCL REQ, ...). They now have icons drawn with tools/icons/New-VIIcon.ps1, in the same font and layout as the original icons: - 26 toolkit VIs, among them the public Ask User, Confirm With User, Report Progress and Cancel Requested: green "MCP" banner. - The 5 member VIs of MCP SSE Response.lvclass: yellow "SSE" banner, like the yellow "HANDLER" banner of MCP Handler.lvclass. - 42 test, fixture and fake-tool VIs: red banner without text, like the existing tests. Only the icons changed; diagrams, front panels and connector panes are untouched, and every file is still in LabVIEW 20.0 format. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tests✅ All 63 tests passed. Per-test results
Protocol tests✅ Protocol tester output (0 failed required checks)VI changesVIs: 73 modified, 0 added, 0 deleted 67 more modified VIsReport for commit 47ace10. The installable test package is under Artifacts of this run once the build job has finished. |
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.
Summary
The VIs added since v3.0.0 had icons in a different font from the rest of the toolkit. On several of them the text ran into the frame. This pull request redraws those 73 icons in the original style: Windows Small Fonts at 7 px, the same layout and the same banners. It also adds the script that draws them, so new VIs get matching icons.
lvai_set_vi_icon, larger, often touching the frametools/icons/New-VIIcon.ps1Changes
tools/icons/New-VIIcon.ps1(new): draws a 32x32 PNG in the toolkit, class or test style, with one to three centred lines. It draws through GDI because GDI+ cannot use raster fonts and silently substitutes another font. It reproduces six existing icons pixel for pixel (tool call, Build Tool, Start, Add Array Items To Schema, Generate Unique Server ID, Add Fixture Tool).tools/icons/README.md(new): how to use the script and how to apply an icon without leaving the LabVIEW 20.0 format.CLAUDE.md: the icon rule points to the script, and the tools table liststools/icons/.73 VIs, icon only:
Ask User,Confirm With User,Report ProgressandCancel Requested;MCP SSE Response.lvclass, with a yellow "SSE" banner like the "HANDLER" banner ofMCP Handler.lvclass;Diagrams, front panels and connector panes are untouched.
Code summary
Toolkit and class VIs
CANCEL REQ,REPORT PROGR,YES/NO USER.Test VIs
TEST,FAKEorADDfirst, then the subject.Verified
srcandtestsare in LabVIEW 20.0 format. I checked theversresources of each file, not the saving LabVIEW.Run_Protocol_Tests_CLI.vi): 24 of 24 required checks pass.Ask User,Confirm With User,Report Progress,Cancel Requested, the five SSE class VIs andTest_MCP_Server.viare executable.Not verified
Known rough edges
Run_Tests_CLI.vikeeps its picture icon from before v3.0.0, andMCP Handler.lvclasskeeps its "HANDLER" banner, whose text touches the frame. Neither was part of this change.lvai_set_vi_iconsaves in the main application instance, which writes the 2026 format. So the icons were set in the application instance ofsrc/LabVIEW MCP Server SDK.lvprojinstead (Set VI Icon from File, then Save.Instrument).tools/icons/README.mddocuments this.This is the first of three pull requests from the review of main. Next come stripping NI's default error-cluster descriptions from tools/list, and cleaning up the block diagrams. They edit some of the same VIs, so each will branch from the one before.
🤖 Generated with Claude Code