Skip to content

v0.2.2 Icon tooling, zigui as a dependency, overlay clipping, desktop-entry escaping - #4

Open
mlavergn wants to merge 3 commits into
ddalcu:mainfrom
mlavergn:fix-icon-clipping
Open

mlavergn wants to merge 3 commits into
ddalcu:mainfrom
mlavergn:fix-icon-clipping

Conversation

@mlavergn

@mlavergn mlavergn commented Nov 9, 2026

Copy link
Copy Markdown

Follow-up fixes, stacked on #3 (this branch includes its commit, so the diff here shows both until #3 merges; only the last commit is new).

  • mkico.py: --iconset writes the macOS .iconset (16…1024 px, @1x/@2x); fewer supersamples at large sizes so 1024 px renders in seconds
  • build.zig: linkApp() exposes the SDL3 runtime (src/app.zig) to dependent packages; examples are built only when zigui is the root build, so a consumer never fetches SDL it doesn't use
  • Sheets/alerts widen to content that cannot be narrower (e.g. a wide segmented Picker) instead of clipping both edges (new engine.minWidth)
  • Truncated text keeps its tail when it fits within float rounding
  • installDesktopEntry escapes Name/Exec/Icon/StartupWMClass per the Desktop Entry Spec (paths with spaces, quotes, $, %, backslashes); refuses control characters

zig build test: 231/231 pass; zig build showcase edit builds.

🤖 Generated with Claude Code

mlavergn and others added 3 commits November 7, 2026 21:22
- SDL3 built from source via lazy castholm/SDL dependency (no system install)
- Makefile: demo, windows/linux/linux-arm64/macos-arm64/cross targets, fixed docs serve
- -Dmacos-sdk for explicit macOS targets; Windows exes use GUI subsystem (-Dwindows-console opt-out)
- Direct3D 12 backend: HLSL shaders compiled at runtime to DXBC, Vulkan/software fallback
- App icon: SVG source, generated .ico/.png (tools/icon/mkico.py), Config.icon_png, Windows resource
- Linux: installDesktopEntry / --install-desktop; UTF-8 LC_CTYPE fixes X11 title mojibake
- Zig 0.17: @intFromEnum -> @backingInt
…-entry escaping

- mkico.py: --iconset writes the macOS .iconset (16…1024 px, @1x/@2x); fewer supersamples at large sizes so 1024 px renders in seconds
- build.zig: linkApp() exposes the SDL3 runtime (src/app.zig) to dependent packages; examples are built only when zigui is the root build, so a consumer never fetches SDL it doesn't use
- Sheets/alerts widen to content that cannot be narrower (e.g. a wide segmented Picker) instead of clipping both edges (new engine.minWidth)
- Truncated text keeps its tail when it fits within float rounding
- installDesktopEntry escapes Name/Exec/Icon/StartupWMClass per the Desktop Entry Spec (paths with spaces, quotes, $, %, backslashes); refuses control characters

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…odule

- engine.minWidth: a measured leaf (wrapped text) is 0 without wrapping it at width 0; it always came out 0 anyway, after splitting the text a character per line into the wrap cache every frame
- drawOverlay lowers sheet/alert/popover content once and measures that node, instead of building it once more per frame
- installDesktopEntry: a value refused for length says so (not "control character"), and the log no longer echoes a value holding control characters
- build.zig: linkApp and the examples share one appModule(), so the runtime a dependent package gets can't drift from the examples'; linkApp documents that the dependency's target must match
- mkico.py keeps 16 samples through 256 px, so the committed .ico/.png regenerate byte-for-byte
- desktop_entry.zig header names only its caller in this tree

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant