Skip to content

reactive styles#666

Draft
Alex2772 wants to merge 11 commits intodevelopfrom
feat/reactive-styles
Draft

reactive styles#666
Alex2772 wants to merge 11 commits intodevelopfrom
feat/reactive-styles

Conversation

@Alex2772
Copy link
Copy Markdown
Collaborator

@Alex2772 Alex2772 commented Dec 7, 2025

@Alex2772 Alex2772 marked this pull request as draft December 7, 2025 13:59
@gemini-code-assist

This comment was marked as outdated.

gemini-code-assist[bot]

This comment was marked as outdated.

@Alex2772
Copy link
Copy Markdown
Collaborator Author

no wonder this PR has id #666

@Alex2772 Alex2772 mentioned this pull request Feb 19, 2026
@Alex2772
Copy link
Copy Markdown
Collaborator Author

Alex2772 commented Feb 22, 2026

Current direction:

using Modifier like in jetpack compose. To stack modifiers, operator| is used:

Margin{} | TextColor { AColor::RED } | BackgroundSolid { AColor::BLUE }

for bindings-lua, to avoid extra object, a global Modifier object will be provided, whose implementation is close to Jetpack Compose:

Modifier = {}

-- c++ registers methods for Modifier for standard modifiers like `BackgroundSolid` and `TextColor`. This is how it would be used in lua:

Modifier:TextColor('#00f'):BackgroundSolid('#f00')

Each modifier is exposed as function and modifies Modifiers state, rather than creating lots of temporary objects.

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