Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Style value constructors #788

Merged
merged 1 commit into from
Jan 11, 2025

Conversation

nicoburns
Copy link
Collaborator

Objective

Make it easier to construct style dimension values:

  • Inherent methods make it possible to call the constructor without importing a trait
  • Inherent methods can be const. Making it possible to safely construct dimension values in a const context
  • Having constructors for calc allows calc() values to be constructed safely.

@nicoburns nicoburns added the usability Make the library more comfortable to use label Jan 11, 2025
@nicoburns nicoburns force-pushed the style-value-constructors branch from ade87e3 to 38b09f4 Compare January 11, 2025 02:12
@nicoburns nicoburns merged commit 80cc4a0 into DioxusLabs:main Jan 11, 2025
22 checks passed
@nicoburns nicoburns deleted the style-value-constructors branch January 11, 2025 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usability Make the library more comfortable to use
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant