Skip to content

Add theme fields for 9-patch slice sizes - #66

Merged
treeform merged 1 commit into
masterfrom
theme-9patch-slices
Sep 3, 2026
Merged

treeform merged 1 commit into
masterfrom
theme-9patch-slices

Conversation

@treeform

@treeform treeform commented Sep 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Move hardcoded 9-patch border sizes onto Theme so a client can match its own atlas art.
  • Widgets, textboxes, menus, and the DSL now read windowPatch, headerPatch, framePatch, and the other slice fields.
  • Defaults stay the current values, so existing Silky examples keep the same look.

Test plan

  • Run a Silky example (examples/basicwindow or examples/panels) and confirm windows, buttons, and scrollbars still slice correctly.
  • Set sk.theme.windowPatch / framePatch to a different radius and confirm the Debug/subwindow chrome updates.
  • Confirm Polyworld editor 9-patches work after applyEditorPatches.

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
@treeform
treeform merged commit 8c75d46 into master Sep 3, 2026
7 checks passed
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