github
feat: Allow setting custom Layout paddings Introduce a `LayoutOption` concept, and allow setting custom paddings for a Layout. The `BaseLayout` struct implements the default paddings retrieval, to reduce the amount of changes required by project maintainers to comply with the new interface methods. This change uses the Option pattern in case other customizations can be added to Layouts in the future, without changing the public API. Main motivation for this change has been Supersonic needing to copy the entire Vbox/Hbox implementation, just to add custom paddings [1]. Also related to feature request #1031. [1] https://github.com/dweymouth/supersonic/blob/02d4082f3/ui/layouts/hboxcustompadding.go
106 of 142 new or added lines in 13 files covered. (74.65%)
24235 of 37371 relevant lines covered (64.85%)
777.49 hits per line