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

[Core] Polish pass on struct member names #248

Open
farism opened this issue Feb 1, 2025 · 1 comment
Open

[Core] Polish pass on struct member names #248

farism opened this issue Feb 1, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@farism
Copy link

farism commented Feb 1, 2025

Suggestions for some member renames, mostly to reduce redundancies. This should help make the UI code a bit more terse. While there is value in having the names be fully descriptive, I believe once you learn the concepts that value quickly diminishes. Therefore the readability of the UI code is paramount.

Clay_TextElementConfig.fontId -> Clay_TextElementConfig.font
Clay_TextElementConfig.fontSize -> Clay_TextElementConfig.size
Clay_TextElementConfig.textColor -> Clay_TextElementConfig.color

Clay_ScrollContainerData.scrollContainerDimensions -> Clay_ScrollContainerData.containerDimensions

Clay_LayoutConfig.childGap -> Clay_LayoutConfig.gap
Clay_LayoutConfig.childAlignment -> Clay_LayoutConfig.alignment
Clay_LayoutConfig.layoutDirection -> Clay_LayoutConfig.direction

@nicbarker nicbarker changed the title Shortening the struct member names [Core] Polish pass on struct member names Feb 2, 2025
@nicbarker
Copy link
Owner

Thanks for opening this, especially the text element config changes are a great idea. Will get them in after #240 merges.

@nicbarker nicbarker added the enhancement New feature or request label Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants